Skip to content
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

fix TokenBasedDocument: convert tokens to tuple if they are a list #380

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

ArneBinder
Copy link
Owner

@ArneBinder ArneBinder commented Nov 17, 2023

When used in a dataset, the document gets serialized to json like structure which does not know tuples, so they get converted to lists. This is a workaround to automatically convert the tokens field back to tuples when the document is created from a dataset.

@ArneBinder ArneBinder added the bug Something isn't working label Nov 17, 2023
@ArneBinder ArneBinder merged commit 02b23ba into main Nov 17, 2023
6 checks passed
@ArneBinder ArneBinder deleted the fix_token_based_document_construction branch November 17, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant