-
Notifications
You must be signed in to change notification settings - Fork 45
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
当模型推理结果为空时会报错 #228
Labels
Comments
模型推理结果什么情况下会为空呢 |
模型可能透出的是一个special token,非中文。这里会过滤掉,所以调用计算分逻辑报错。 目前最粗暴的解决办法就是调用模型返回特殊时,给赋一个非常见的中文字符。 |
请问执行的代码是什么,我们复现一下 |
这个是模型的输出,复现的话可以把predict复制为空字符串或者空格符号就可以了 |
Closed
EvalScope v0.9.0 已发布,可以使用新版本,该问题已修复 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
evalscope/metrics/rouge_metric.py:56
可以增加忽略输出为空的
但外部调用的调用操作没看懂,为什么这里用了for循环,输入的应该是1个样本,如果是一个样本,调用get_scores,只有一个还为空,则内部又报错~
The text was updated successfully, but these errors were encountered: