Skip to content

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

Open
jjroelofs wants to merge 1 commit intoTessmore:masterfrom
dxpr:jur/master/support-chinese-sentence-boundary-char
Open

Add support for Chinese sentence boundary character (。)#48
jjroelofs wants to merge 1 commit intoTessmore:masterfrom
dxpr:jur/master/support-chinese-sentence-boundary-char

Conversation

@jjroelofs
Copy link
Copy Markdown

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