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

词性标注效果过好 #160

Open
axty666 opened this issue Jul 6, 2022 · 1 comment
Open

词性标注效果过好 #160

axty666 opened this issue Jul 6, 2022 · 1 comment

Comments

@axty666
Copy link

axty666 commented Jul 6, 2022

理论上来讲效果好是一件好事,但是实际测试来讲会把不存在的地名也认作为地名

import pkuseg
seg = pkuseg.pkuseg(postag=True)
text = seg.cut('广场镇是河北天津衡水冲绳东京的旧地狱和亚特兰斯地吗?')
for word, flag in text: 
    if flag == 'ns':
        print (word)

输出结果为:

广场镇
河北
天津
衡水
冲绳
东京
亚特兰斯
@lcyyyyyyyyyyy
Copy link

lcyyyyyyyyyyy commented Jul 6, 2022 via email

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

2 participants