HIT-SCIR / pyltp

pyltp: the python extension for LTP
1.53k stars 352 forks source link

分词加载自己字典,用load_with_lexicon,导入出错,有三个参数,第一个是模型路径,第二个是字典路径,第三个呢?只传两个会报错 #226

Closed MAJIN123 closed 4 years ago

MAJIN123 commented 4 years ago

在提问之前,请确认以下几点:

问题类型

出错场景

代码片段

如何复现这一错误

运行环境

期望结果

其他

Please ensure your issue adheres to the following guidelines:

What is affected by this bug?

When does this occur?

Where on the code does it happen?

How do we replicate the issue?

Your environment information

Expected behavior (i.e. solution)

Other Comments

AlongWY commented 4 years ago

已经对代码进行了修改,同时在example中也进行了说明