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('我爱北京天安门') # 进行分词和词性标注 print(text)
输出结果是: [('我', 'B'), ('爱', 'I_end'), ('北京', 'B'), ('天安门', 'I_end')]
尝试了多个例子,均为tagIndex.txt下的内容,而非tags.txt中的真实词性
The text was updated successfully, but these errors were encountered:
No branches or pull requests
按照给的测试样例测试
import pkuseg
seg = pkuseg.pkuseg(postag=True) # 开启词性标注功能
text = seg.cut('我爱北京天安门') # 进行分词和词性标注
print(text)
输出结果是:
[('我', 'B'), ('爱', 'I_end'), ('北京', 'B'), ('天安门', 'I_end')]
尝试了多个例子,均为tagIndex.txt下的内容,而非tags.txt中的真实词性
The text was updated successfully, but these errors were encountered: