thunlp / THULAC-Python

An Efficient Lexical Analyzer for Chinese
MIT License
2.02k stars 336 forks source link

python 默认加载的是lite模型么? #107

Open joyeJ opened 3 years ago

joyeJ commented 3 years ago

如题。python 默认加载的是lite模型么?

joyeJ commented 3 years ago

是不是Model1呀?

secsilm commented 3 years ago

看了看源码,加载的哪个模型要看 seg_only 的值了(默认 False):

https://github.com/thunlp/THULAC-Python/blob/3f1f126cd92c3d2aebdf4ab4850de3c9428a3b66/thulac/__init__.py#L55-L66