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

unicode 中文标点符号完全无法正确标注 #917

Closed
trulyspinach opened this issue Apr 25, 2021 · 0 comments
Closed

unicode 中文标点符号完全无法正确标注 #917

trulyspinach opened this issue Apr 25, 2021 · 0 comments

Comments

@trulyspinach
Copy link

>>> pseg.lcut('小明硕士毕业于中国科学院计算所,后在日本京都大学深造.;', use_paddle=True)
[pair('小明', 'PER'), pair('硕士', 'n'), pair('毕业', 'v'), pair('于', 'p'), pair('中国科学院计算所', 'ORG'), pair(',', 'w'), pair('后', 'f'), pair('在', 'p'), pair('日本京都大学', 'ORG'), pair('深造', 'v'), pair('.', 'w'), pair(';', 'v')]

>>> pseg.lcut('.,;"" ,。;“”', use_paddle=True)
[pair('.', 'w'), pair(',', 'w'), pair(';', 'w'), pair('"', 'w'), pair('"', 'w'), pair(' ,。;“”', 'nz')]

>>> pseg.lcut('。', use_paddle=True)
[pair('。', 'n')]

可见不同的unicode中文句号被标注为名词和动词。请问这是我这边设置的有问题吗?

谢谢

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

No branches or pull requests

1 participant