pyrouge:无法将"pyrouge_set_rouge_path"识别为内部或外部命令 [英] pyrouge: 'pyrouge_set_rouge_path' is not recognized as an internal or external command

查看:96
本文介绍了pyrouge:无法将"pyrouge_set_rouge_path"识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Windows 7,并使用Python 2.7.我最近安装了ROUGE(针对召回评估的面向召回的本科),以评估我的摘要.

I have Windows 7 and use Python 2.7. I recently installed ROUGE (Recall-Oriented Understudy for Gisting Evaluation) in order to evaluate summaries that I have.

不幸的是,我的摘要采用.txt格式,因此无法与ROUGE一起使用.因此,我从 pypi 安装了pyrouge.

Unfortunately, my summaries are in .txt format, and wouldn't work with ROUGE. I therefore, installed pyrouge from pypi.

在上面的相同网站上,他们具有安装步骤.我遵循的第一步是使用pip install.下一步说:

In the same website above, they have installation steps. I followed the first step, which was to use pip install. The next step says:

假设ROUGE-1.5.5.的安装正常,请使用以下命令告诉pyrouge ROUGE路径:

"Assuming a working ROUGE-1.5.5. installation, tell pyrouge the ROUGE path with this command:

pyrouge_set_rouge_path/absolute/path/to/ROUGE-1.5.5/directory"

pyrouge_set_rouge_path /absolute/path/to/ROUGE-1.5.5/directory"

我在命令提示符下尝试该行:

I try that line in the command prompt:

pyrouge_set_rouge_path C:\ rouge

pyrouge_set_rouge_path C:\rouge

但是我仍然收到此错误:

Yet I keep getting this error:

'pyrouge_set_rouge_path'无法识别为内部或外部命令,可操作程序或批处理文件.

'pyrouge_set_rouge_path' is not recognized as an internal or external command, operable program or batch file.

在此问题上的任何帮助将不胜感激. 谢谢

Any help in this matter is greatly appreciated. Thanks

推荐答案

尝试一下:

set pyrouge_set_rouge_path=C:\rouge

这篇关于pyrouge:无法将"pyrouge_set_rouge_path"识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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