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)) #?????????
评论列表
文章目录