运行报错:AttributeError: module 'jieba.finalseg' has no attribute 'cut'

wmomyfyw  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(97)

运行报错,在_init_.py 和 finalseg文件里都找不到
File "C:\XXXXXXX\Python\Python35\lib\site-packages\jieba_init_.py", line 265, in __cut_DAG
recognized = finalseg.cut(buf)
AttributeError: module 'jieba.finalseg' has no attribute 'cut'
看了下源码,如下,请大神帮忙了!
else:
if not self.FREQ.get(buf):
recognized = finalseg.cut(buf)
for t in recognized:
yield t
else:
for elem in buf:
yield elem
buf = ''

相关问题