def __init__(self, custom_dict_path=CUSTOM_DICTIONARY_PATH):
super(JiebaClient, self).__init__()
try:
jieba.load_userdict(custom_dict_path)
self.debug("init JiebaClient, with custom_dict_path=%s", custom_dict_path)
except Exception, e:
self.exception(e)
self.error('@@@@@@@@@@@@@@@@@@@@@@@@@@@ loading custom_dictionary failed')
评论列表
文章目录