-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rank模式分词报错 #169
Comments
能给出更具体的信息吗,比如报错时的所有log信息 |
|
我看了开始的很多词标记是O |
text里面是不是有空格,把空格去掉试试 |
https://github.com/baidu/lac/blob/master/python/LAC/models.py 371行,调用weight_out[-1]的时候,weight_out可能为空 |
https://github.com/baidu/lac/blob/master/python/LAC/models.py 我也碰到这种情况了,在对长文本处理时,第一个片段没有被正确分词并标注词性 此时表现为 331行生成的 word_length 与 result 不一致 这就导致 367行 开始循环时,tag 为 ‘O’,进而导致371行 调用 weight_out[-1] 的时候,出现 weight_out 为空的情况 |
我也遇到这个问题了,请问最后解决了吗? @yjx4509 |
您的来信已收悉,我会尽快回复,感谢您的来信。
|
IndexError: list index out of range W0111 17:16:55.818279 36152 analysis_predictor.cc:1058] Deprecated. Please use CreatePredictor instead.
想知道什么情况下会出现这样的错误!
The text was updated successfully, but these errors were encountered: