Python jieba.suggest_freq() Examples
The following are 1
code examples of jieba.suggest_freq().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
jieba
, or try the search function
.
Example #1
Source File: console.py From Chatbot with GNU General Public License v3.0 | 5 votes |
def init_jieba(self, seg_dic, userdic): """ jieba custom setting. """ jieba.load_userdict(userdic) jieba.set_dictionary(seg_dic) with open(userdic,'r',encoding='utf-8') as input: for word in input: word = word.strip('\n') jieba.suggest_freq(word, True)