m-popovic / hjerson

Hjerson: An Open Source Tool for Automatic Error Classification of Machine Translation Output
Other
0 stars 0 forks source link

-c -m are not working #3

Open sadanyh opened 2 years ago

sadanyh commented 2 years ago

Hi Thanks for the interesting tool and paper.

Could you please advise on the -e -c and -m commands. I have problems applying them

This is the traceback for the -m command

Traceback (most recent call last): File "hjerson.py", line 860, in main() File "hjerson.py", line 762, in main write_html(args.html, args.html, args.hypothesis_additional, hypWords, bestWerHypAdd, hypErrorCats, "hyp") File "hjerson.py", line 236, in write_html htmltxt.write(font+words[nc]+addcat+closefont) NameError: name 'htmltxt' is not defined

m-popovic commented 2 years ago

Did you give the name of the file after -m?

For example hjerson.py -R my_reference -H my_hypothesis -m my_html.html