We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
理论上来讲效果好是一件好事,但是实际测试来讲会把不存在的地名也认作为地名
import pkuseg seg = pkuseg.pkuseg(postag=True) text = seg.cut('广场镇是河北天津衡水冲绳东京的旧地狱和亚特兰斯地吗?') for word, flag in text: if flag == 'ns': print (word)
输出结果为:
广场镇 河北 天津 衡水 冲绳 东京 亚特兰斯
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
理论上来讲效果好是一件好事,但是实际测试来讲会把不存在的地名也认作为地名
输出结果为:
The text was updated successfully, but these errors were encountered: