Skip to content

Add option to retokenize ColumnCorpus #3658

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

alanakbik
Copy link
Collaborator

Closes #3654

This PR adds an option to retokenize any ColumnCorpus with a new tokenizer. In order to do this, you need to pass use_tokenizer when creating the corpus.

Example:

# load CleanCoNLL but with Staccato tokenizer
corpus = CLEANCONLL(use_tokenizer=StaccatoTokenizer())

The PR also fixes some issues in the retokenize method of the Sentence object, in particular adding support for Relation labels.

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.

[Feature]: Add option to retokenize a ColumnCorpus upon loading
1 participant