Self-Attention Guided Copy Mechanism for Abstractive Summarization---ACL 2020
weixin_58163103:
有源码嘛
Windows环境下配置以及使用pyrouge的解决方案
哦黑白:
多谢,已成功解决!
Windows环境下配置以及使用pyrouge的解决方案
vector_Lu:
Rouge155.py中的evaluate函数添加command = ['perl'] + command,变成如下:
[code=python]
self.write_config(system_id=system_id)
options = self.__get_options(rouge_args)
command = [self._bin_path] + options
self.log.info(
"Running ROUGE with command {}".format(" ".join(command)))
command = ['perl'] + command
rouge_output = check_output(command).decode("UTF-8")
[/code]
Windows环境下配置以及使用pyrouge的解决方案
vector_Lu:
就是pyrouge包的源码中,执行的对应命令行缺少perl参数,添加到命令list的最开头即可。
Windows环境下配置以及使用pyrouge的解决方案
哦黑白:
报了另外一个错
Couldn't open ../temp\tmpoq0wz8u2\rouge_conf.xml:
No such file or directory at C:\Users\86158\ROUGE-1.5.5\pyrouge-master\tools\ROUGE-1.5.5\ROUGE-1.5.5.pl line 501.