python - jieba分词,同一个词却被分成了两个词,该怎么解决?
PHP中文网
PHP中文网 2017-04-18 10:07:47
0
1
1234
PHP中文网
PHP中文网

认证0级讲师

reply all(1)
洪涛

Add dictionary.

jieba.load_userdict(file_name.txt)

filename.txtIt says inside:

刘德华 nz

or add a word

jieba.add_word('刘德华')
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template