ltp icon indicating copy to clipboard operation
ltp copied to clipboard

python 3.7 Issues 'LTP' object has no attribute 'init_dict'

Open xxWeiDGitzy opened this issue 3 years ago • 1 comments

I want to add dict to participle. When I run ltp.init_dict(path="user_dict.txt", max_window=4) there are some issues 'LTP' object has no attribute 'init_dict' PLZ help me

xxWeiDGitzy avatar Dec 05 '22 03:12 xxWeiDGitzy

4.2 版本的 ltp 暂时还没有加入该 api,可以使用 add_words 来加入自定义词语

AlongWY avatar Dec 08 '22 02:12 AlongWY