I am trying to run the OpenNMT project using the instruction from the link: http://forum.opennmt.net/t/text-summarization-on-gigaword-and-rouge-scoring/85/6
I am using Python 2.7 and installed pytorch from the github repository.
I am trying to run the program using the prebuild model of the OpenNMT, which I have downloaded from the following: http://opennmt.net/Models/
I tried the command:
python translate.py -model textsum_epoch7_14.69_release.t7 -src data/Giga/input.txt
Got the following error:
Traceback (most recent call last):
File "translate.py", line 151, in <module>
main()
File "translate.py", line 70, in main
translator = onmt.Translator(opt)
File "/home/ubuntu/opennmt/onmt/Translator.py", line 21, in __init__
checkpoint = torch.load(opt.model)
File "/usr/local/lib/python2.7/dist-packages/torch/serialization.py", line 229, in load
return _load(f, map_location, pickle_module)
File "/usr/local/lib/python2.7/dist-packages/torch/serialization.py", line 367, in _load
magic_number = pickle_module.load(f)
cPickle.UnpicklingError: invalid load key, ''.
Kindly let me know what I need to do so that I can use the model and check the library OpenNMT.