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

implement token_based_document_to_text_based() #334

Merged
merged 8 commits into from
Sep 11, 2023

Conversation

ArneBinder
Copy link
Owner

@ArneBinder ArneBinder commented Sep 11, 2023

in analogy to text_based_document_to_token_based() (see #315).

This also adds the following improvements to text_based_document_to_token_based():

  • use tokens, token_offset_mapping, and char_to_token from metadata, if available there and not explicitly provided, and warn, if provided, but different to entries in metadata
  • raise an exception if the layers that target the text (the layers we want to modify) consist of annotations that are no Spans

@ArneBinder ArneBinder added the enhancement New feature or request label Sep 11, 2023
@ArneBinder ArneBinder merged commit 30bd99d into main Sep 11, 2023
@ArneBinder ArneBinder deleted the token_based_document_to_text_based branch September 11, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant