归档: 2018/4

0

gensim topic model

安装ltp分词1pip install pyltp 下载最新的模型放到机器上,比如放在了~/data/ltp_data下12345from pyltp import Segmentorsegmentor = Segmentor()segmentor.load("~/data/ltp_data/cws.model")text = "我爱看电影"print(list(segmentor.segment