We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
One solution is to replace newlines in each document with a single whitespace character before sentence splitting, e.g.,
import re # Iterate through logical text segments # Strip newlines before segmenting for segment in segmenter.segment(re.sub(r'\s+', ' ', text)):
Instead of:
long-medical-document-lms/explain/msp.py
Line 72 in 27bc5dd
The text was updated successfully, but these errors were encountered:
No branches or pull requests
One solution is to replace newlines in each document with a single whitespace character before sentence splitting, e.g.,
Instead of:
long-medical-document-lms/explain/msp.py
Line 72 in 27bc5dd
The text was updated successfully, but these errors were encountered: