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

词性输出错误 #174

Open
Lumingous opened this issue Nov 26, 2023 · 0 comments
Open

词性输出错误 #174

Lumingous opened this issue Nov 26, 2023 · 0 comments

Comments

@Lumingous
Copy link

按照给的测试样例测试
import pkuseg
seg = pkuseg.pkuseg(postag=True) # 开启词性标注功能
text = seg.cut('我爱北京天安门') # 进行分词和词性标注
print(text)

输出结果是:
[('我', 'B'), ('爱', 'I_end'), ('北京', 'B'), ('天安门', 'I_end')]

尝试了多个例子,均为tagIndex.txt下的内容,而非tags.txt中的真实词性

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