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

Elements widget uses two different tokenizers #157

Open
eriktks opened this issue Jan 21, 2025 · 0 comments
Open

Elements widget uses two different tokenizers #157

eriktks opened this issue Jan 21, 2025 · 0 comments

Comments

@eriktks
Copy link
Member

eriktks commented Jan 21, 2025

The Elements widget uses two different tokenizers: nltk.tokenize.RegexpTokenizer.span_tokenize in tagger.py and spacy in util.py. This leads to alignment problems of the tokens and the part-of-speech tags which can be made visible by adding strict=True to the zip() calls in tagger.py. These two token sets should be harmonized.

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

No branches or pull requests

1 participant