when I use the code to evaluate BLEU/METEOR/CIDEr scores,I failed!
Afeihan opened this issue · 1 comments
Afeihan commented
when I use the following command to run the code,I failed
th eval.lua -model model_id1-501-1448236541.t7 -num_images 1000 -language_eval 1
The error message as follows:
Can i get some relevant advice on how to solve this ?
zzy-ucas commented
@Afeihan I have met the same problem in https://github.com/metrofun/AdaptiveAttention
and tried many ways. The reason is that the tool used in command cmd
in
cmd = ['java', '-cp', STANFORD_CORENLP_3_4_1_JAR, 'edu.stanford.nlp.process.PTBTokenizer', '-preserveLines', '-lowerCase']
is not installed. So the FILE NOT FOUND is the TOOL java
and cause the error here in
p_tokenizer = subprocess.Popen(cmd, cwd=path_to_jar_dirname, stdout=subprocess.PIPE)
Hope this may help U!