Translation gives error?

th translate.lua -model 20novmodel_epoch13_35.00.t7 -src data/srchn.bpe50000 -output 9dec.txt
[12/08/17 21:03:23 INFO] Loading '20novmodel_epoch13_35.00.t7'...	
/home/iiit/torch/install/bin/luajit: ./onmt/translate/Translator.lua:135: attempt to index local 'checkpoint' (a nil value)
stack traceback:
	./onmt/translate/Translator.lua:135: in function '__init'
	/home/iiit/torch/install/share/lua/5.1/torch/init.lua:91: in function 'new'
	translate.lua:93: in function 'main'
	translate.lua:334: in main chunk
	[C]: in function 'dofile'
	...iiit/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
	[C]: at 0x00405d50

##how to resolve this error?

Hello, the problem happens if the file 20novmodel_epoch13_35.00.t7 is missing or is empty. Can you double check that it is in your current directory?

  • 20novmodel_epoch13_35.00.t7
    This file is present in the folder and is not empty.

Which OpenNMT version are you using?

I am using latest version and also applying
git pull form update the version.can I send you own trained file to you.

The latest version does not match the line numbers your error contains. Please check that you don’t have local modifications or give the exact commit ID that you are using.


this is the commit id i pull from github.

translate.lua is currently broken but not with this error:

in this link discription is given
my src sentences is that-
Training file-
please check it?

Problem is fixed or not sir?

The error listed above is fixed. If you still have the same issue, it’s likely you have a bad repository and you should reset or clone it again.

thanks it is worked:grinning:!