Traceback (most recent call last):


 "translate.py", line 36, in <module>

main(opt)


 "translate.py", line 24, in main

attn_debug=opt.attn_debug)


 "/home/Jacob/OpenNMT-py/onmt/translate/translator.py", line 213, in translate

batch_data = self.translate_batch(batch, data, fast=self.fast)


 "/home/Jacob/OpenNMT-py/onmt/translate/translator.py", line 314, in translate_batch

return self._translate_batch(batch, data)


 "/home/Jacob/OpenNMT-py/onmt/translate/translator.py", line 590, in _translate_batch

ret = self._from_beam(beam)


 "/home/Jacob/OpenNMT-py/onmt/translate/translator.py", line 604, in _from_beam

scores, ks = b.sort_finished(minimum=n_best)


 "/home/Jacob/OpenNMT-py/onmt/translate/beam.py", line 160, in sort_finished

s = global_scores[i]
IndexError: index 5 is out of bounds for dimension 0 with size 5


Traceback (most recent call last):


 "/opt/conda/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build

env=env)


 "/opt/conda/lib/python3.6/subprocess.py", line 438, in run

output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
