Skip to content

Raise error for TokenSpan arrow conversion with pyarrow < 2 #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

BryanCutler
Copy link
Member

Adds raising of error for pyarrow < 2 due to unsupported use of nested dictionary arrays.

This also adds support for TokenSpan array containing null values.

Currently disable TokenSpan for multi-doc due to unsupported pyarrow.concat with dictionary unification.

Closes #179

@BryanCutler BryanCutler requested a review from frreiss April 1, 2021 18:53
@BryanCutler
Copy link
Member Author

@frreiss Unfortunately I ran into unimplemented errors when trying mulit-doc and parquet saving. Otherwise, I think this is working better and I added some more tests with TokenSpan arrays containing null values.

Copy link
Member

@frreiss frreiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@frreiss frreiss merged commit dd521f7 into CODAIT:master Apr 1, 2021
@BryanCutler BryanCutler deleted the arrow-TokenSpan-additional-tests branch April 1, 2021 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reimplement Arrow conversion to cover multi-document SpanArrays/TokenSpanArrays
2 participants