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

GH-2311: Fix SegtokSentenceSplitter Incorrect Sentence Position Attributes #2312

Merged

Conversation

dobbersc
Copy link
Collaborator

This PR fixes GH-2311.

My fix requires a sentence lookahead when iterating over the plain sentences straight from the segtok library.
This is probably not the best solution. I appreciate any feedback.

@alanakbik
Copy link
Collaborator

@dobbersc thanks for fixing this and documenting the issue so well! Great solution too with stagger (did not know this one) - makes the code very readable!

@alanakbik alanakbik merged commit 96ac7cd into flairNLP:master Jun 29, 2021
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.

SegtokSentenceSplitter Incorrect Sentence Position Attributes
2 participants