Translation gives error?

(Aditya) #1
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?

(jean.senellart) #2

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?

(Aditya) #3
  • 20novmodel_epoch13_35.00.t7
    This file is present in the folder and is not empty.

(Guillaume Klein) #4

Which OpenNMT version are you using?

(Aditya) #5

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

(Guillaume Klein) #6

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.

(Acharya) #7


(Acharya) #8

this is the commit id i pull from github.

(Guillaume Klein) #9

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

(Acharya) #10

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

(Aditya) #11

Problem is fixed or not sir?

(Guillaume Klein) #12

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.

(Aditya) #13

thanks it is worked:grinning:!