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

Add support for Chinese sentence boundary character (。) #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jjroelofs
Copy link

I understand between this PR and the Hindi support PR there is some conflict, let me know if you have a better idea about making the plugin support multiple scripts in a scalable way

  • Update Match.js and sbd.js to recognize Chinese full stop (。) as a sentence boundary
  • Modify isConcatenated function to handle Chinese characters
  • Add test cases for Chinese sentences
  • Update README to mention Chinese sentence boundary support

This change improves the library's ability to correctly tokenize Chinese text and mixed Chinese-English text into sentences.

- Update Match.js and sbd.js to recognize Chinese full stop (。) as a sentence boundary
- Modify isConcatenated function to handle Chinese characters
- Add test cases for Chinese sentences
- Update README to mention Chinese sentence boundary support

This change improves the library's ability to correctly tokenize Chinese text and mixed Chinese-English text into sentences.
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.

1 participant