python - Errors installing Pyrouge -


i'm trying install pyrouge, , i'm getting following errors

====================================================================== error: test_options (pyrouge.tests.rouge155_test.pyrougetest) ---------------------------------------------------------------------- traceback (most recent call last):   file "/usr/local/lib/python2.7/dist-packages/pyrouge/tests/rouge155_test.py", line 218, in test_options     pyrouge_output = check_output_clean(pyrouge_command)   file "/usr/local/lib/python2.7/dist-packages/pyrouge/tests/rouge155_test.py", line 17, in <lambda>     check_output_clean = lambda c: check_output(c).decode("utf-8").strip()   file "/usr/lib/python2.7/subprocess.py", line 566, in check_output     process = popen(stdout=pipe, *popenargs, **kwargs)   file "/usr/lib/python2.7/subprocess.py", line 710, in __init__     errread, errwrite)   file "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child     raise child_exception oserror: [errno 2] no such file or directory  ====================================================================== error: test_write_config (pyrouge.tests.rouge155_test.pyrougetest) ---------------------------------------------------------------------- traceback (most recent call last):   file "/usr/local/lib/python2.7/dist-packages/pyrouge/tests/rouge155_test.py", line 197, in test_write_config     check_output(command.split())   file "/usr/lib/python2.7/subprocess.py", line 566, in check_output     process = popen(stdout=pipe, *popenargs, **kwargs)   file "/usr/lib/python2.7/subprocess.py", line 710, in __init__     errread, errwrite)   file "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child     raise child_exception oserror: [errno 2] no such file or directory  ---------------------------------------------------------------------- 

i'm running ubuntu, , have installed xml::dom using synaptic package installer.

additionally, have ran pyrouge_set_rouge_path.py command , have directed rouge directory. have used sudo installations.

in rouge155_test.py file, should modify 2 lines:

modify

"pyrouge_evaluate_plain_text_files.py -m {} -s {} -sfp " 

to

"pyrouge_evaluate_plain_text_files -m {} -s {} -sfp " 

and, modify

"pyrouge_write_config_file.py -m {m} -s {s} "  

to

"pyrouge_write_config_file -m {m} -s {s} "  

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -