未能成功标注词性
axty666 opened this issue · 1 comments
axty666 commented
未能成功标注地名的词性,示例:
import jieba
import jieba.posseg as pseg
words = pseg.cut("滨州滨州市")
for word, flag in words:
if flag == 'ns':
print('%s' % (word))
结果输出了滨州,而没有滨州市
import jieba
import jieba.posseg as pseg
words = pseg.cut("滨州首尔冲绳")
for word, flag in words:
if flag == 'ns':
print('%s' % (word))
结果只输出了滨州 而没有首尔冲绳