THULAC-Python icon indicating copy to clipboard operation
THULAC-Python copied to clipboard

请问下python版是将C++ 封装起来的还是python全部重写的?

Open Wall-ee opened this issue 8 years ago • 6 comments

请问下python版是将C++ 封装起来的还是python全部重写的?

Wall-ee avatar Aug 05 '17 08:08 Wall-ee

重写的,fast_cut和fast_cut_f方法是调用了c++版的.so扩展

MaJunhua avatar Aug 10 '17 01:08 MaJunhua

ok 目前python版 和 python 的fast_cut是否支持自定义字典?有没有相应的链接可以看一下

Wall-ee avatar Sep 07 '17 09:09 Wall-ee

支持的。链接您是说使用方法么,和普通的cut函数参数一样,只是函数名不同

MaJunhua avatar Sep 07 '17 21:09 MaJunhua

恩 是说 自定义词典的帮助手册在哪里?我想看看

Wall-ee avatar Sep 09 '17 10:09 Wall-ee

自定义词典只需要新建个文本文件,每行一词即可(有多少词写多少行),然后在初始化参数里指定user_dict="你的文件名"就可以了。操作很简单,没有手册的哈

MaJunhua avatar Sep 10 '17 22:09 MaJunhua

可以自主训练么?

visonforcoding avatar Mar 16 '18 02:03 visonforcoding