SoExtention.py 文件源码

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

项目:THULAC-Python 作者: thunlp 项目源码 文件源码
def __init__(self, model_path, user_dict_path, t2s, just_seg, pre_alloc_size=1024*1024*16):
        root = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) #??so?????
        self._lib = cdll.LoadLibrary(root+'/libthulac.so') #??so??
        self._lib.init(c_char_p(fixCCP(model_path)), c_char_p(fixCCP(user_dict_path)), int(pre_alloc_size), int(t2s), int(just_seg)) #?????????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号