ModuleNotFoundError: No module named 'bin.rouge_cmd'
Hi, I wanted to first test out the rouge library on the sample files provided ('./tests/hyp.txt' and './tests/ref.txt') before actually using it on my own files.
However, on running the command: rouge -f ./tests/hyp.txt ./tests/ref.txt
I get the following error:
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/bin/rouge", line 33, in <module> sys.exit(load_entry_point('rouge==1.0.0rc2', 'console_scripts', 'rouge')())
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/rouge", line 25, in importlib_load_entry_point
return next(matches).load()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
P.S.:
- I get the same error when I run rouge on my own files too.
- I have installed Python3.8.7 and pip21.0.1
UPDATE: The library worked when I tried using it on google colab (with Python3.6.9 and pip19.3.1)
Honestly don't get it. I tried using exact same version of python and pip, everything is fine...
Maybe things are messed up by environments, are you using some envs?
same bug.
Please use python rouge/bin/rouge_cmd.py -f ./fb/data/xsum_hypo/bart.test.hypo ./fb/data/xsum_data/test.target -a