set pyrouge_set_rouge_path error [duplicate]

心不动则不痛 提交于 2019-12-25 09:42:45

问题


I have Windows 7 and use Python 3.4

I'm trying to work with ROUGE installing pyrouge from pypi.

I followed the installation steps on the site https://pypi.python.org/pypi/pyrouge/0.1.2

But the command:

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

doesn't execute.

I try in the command prompt:

pyrouge_set_rouge_path C:\rouge

and the error:

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

I would greatly appreciate if you can help me with something. Thanks


回答1:


I asked the same question for Python 2.7 in stackoverflow, and received the following answer:

set pyrouge_set_rouge_path=C:\rouge

This worked for me.



来源:https://stackoverflow.com/questions/27173692/set-pyrouge-set-rouge-path-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!