ROUGE评估方法给出零值 [英] ROUGE evaluation method gives zero value

查看:166
本文介绍了ROUGE评估方法给出零值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照 http://kavita-ganesan.com/rouge-howto中的说明设置了所有参数.但是我得到的精度召回和f-1的值为零.请帮我该怎么办?

I have set all parameters as discribed in http://kavita-ganesan.com/rouge-howto. But I get zero values of precision recall and f-1. Please, Help me what can i do?

推荐答案

如果正确设置了所有参数,并且在运行rouge时没有出现任何错误,则可能在将摘要文件制成html格式时发生了以下错误.

If you have set all parameters right and are not getting any error while running rouge then probably you are doing the following mistake while making your summary files in html format.

rouge does not handle whitespaces properly 
thus
<a name="1">[1]</a> <a href="#1" id= 1>
<a name="1">[1]</a> <a href="#1" id=1>
are not the same

在第一种情况下,不会显示任何错误,但输出将为零.在第二种情况下,您将获得正确的输出.

In the first case you will not be shown any error but the output will be zero. In second case you get the right output.

希望这会有所帮助.

这篇关于ROUGE评估方法给出零值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆