HIT-SCIR / pyltp

pyltp: the python extension for LTP
1.53k stars 353 forks source link

分词没有任何输出 #171

Closed wjnodejs closed 6 years ago

wjnodejs commented 6 years ago

环境 win10 64位 pyltp0.1.9.1 python2.7.15 ltp模板3.3.1

-- coding: utf-8 --

from pyltp import Segmentor segmentor = Segmentor() segmentor.load("E:\ltp_data\cws.model") words = segmentor.segment("元芳你怎么看") print "|".join(words) segmentor.release()

image 没有任何输出

wjnodejs commented 6 years ago

文件编码的问题,后来参考了 https://github.com/HIT-SCIR/pyltp/issues/26