-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
sentences 有用到什么算法或者语义分析之类的吗? #102
Comments
同问。目前中文断句,好像没看到什么特别好的办法,不知道@isnowfy大神是怎么解决的。。。。 |
@muzier Pattern.compile(
String.format("\\W?(.{1,%1$d}\\b|.{1,%1$d})\\W?", 句子最大长度-2),
Pattern.UNICODE_CHARACTER_CLASS) |
源代码在这里: snownlp/snownlp/normal/__init__.py Lines 32 to 45 in fad6ae7
应该就是以 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
希望简单讲解下断句逻辑~
The text was updated successfully, but these errors were encountered: