nlu_api.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:KnowledgeGraph-QA-Service 作者: kangzhun 项目源码 文件源码
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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号