#中文词性标注
import jieba.posseg as pseg
words = pseg.cut('我爱北京天安门')
for word, pos in words:
print('%s %s' % (word, pos))
我 r
爱 v
北京 ns
天安门 ns
#中文词性标注
import jieba.posseg as pseg
words = pseg.cut('我爱北京天安门')
for word, pos in words:
print('%s %s' % (word, pos))
我 r
爱 v
北京 ns
天安门 ns