karpathy/neuraltalk2

when I use the code to evaluate BLEU/METEOR/CIDEr scores,I failed!

Afeihan opened this issue · 1 comments

@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!