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

wrong split result when punctuations and digits are near each other #29

Closed
DoodleBears opened this issue Oct 31, 2024 · 0 comments · Fixed by #30
Closed

wrong split result when punctuations and digits are near each other #29

DoodleBears opened this issue Oct 31, 2024 · 0 comments · Fixed by #30
Labels
bug Something isn't working enhancement New feature or request

Comments

@DoodleBears
Copy link
Owner

DoodleBears commented Oct 31, 2024

没有完全修复。
以下这两个例子,数字和符号混合开头的,依然存在问题:

text = "2.2术语和定义 2.2 Terms and Definitions"
text = "(2.2)术语和定义 (2.2)Terms and Definitions"

另外调试时的测试代码没有注释,打印出来了

测试:LangSectionType.ZH_JA
测试:LangSectionType.DIGIT
测试:LangSectionType.OTHERS

Originally posted by @fytz282117 in #5 (comment)

@DoodleBears DoodleBears changed the title split string is wired when punctuation and digit exist at start split string is wired when punctuation and digit are near each other Oct 31, 2024
@DoodleBears DoodleBears changed the title split string is wired when punctuation and digit are near each other split string is wired when punctuations and digits are near each other Oct 31, 2024
@DoodleBears DoodleBears changed the title split string is wired when punctuations and digits are near each other wrong split result when punctuations and digits are near each other Oct 31, 2024
@DoodleBears DoodleBears added bug Something isn't working enhancement New feature or request labels Oct 31, 2024
@DoodleBears DoodleBears mentioned this issue Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant