Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About evaluation #22

Open
Embedding opened this issue May 27, 2018 · 3 comments
Open

About evaluation #22

Embedding opened this issue May 27, 2018 · 3 comments

Comments

@Embedding
Copy link

Hi , thank you for your nice contribution!
I encounter problem in evaluation:
scores:

Traceback (most recent call last):
File "eval.py", line 101, in
eval(args.out_file, args.src_file, args.tgt_file)
File "eval.py", line 91, in eval
return QGEval.evaluate()
File "/home/zhaozhe/Desktop/opennmt/OpenNMT-py-master/qgevalcap/eval.py", line 24, in evaluate
(Meteor(),"METEOR"),
File "/home/zhaozhe/Desktop/opennmt/OpenNMT-py-master/qgevalcap/meteor/meteor.py", line 29, in init
stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

I can not figure out why meteor can not be calculated

@xinyadu
Copy link
Owner

xinyadu commented May 27, 2018 via email

@TjebbeVQ
Copy link

TjebbeVQ commented Feb 7, 2019

It "works" using python3 instead of python2.7. But i have problems with the imports of the scorer modules. ModuleNotFoundError: No module named 'bleu_scorer'

EDIT
Fixed the module error by changing import in bleu.py to "from bleu.bleu_scorer import BleuScorer"

EDIT2
further trying to run the eval, it seems the python code is written in python2 not 3

@ilham-bintang
Copy link

Same error. I run with python2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants