Decoding with LM

Hello there!

I’m trying to translate using a LM but I get this error while translating

th translate.lua -gpuid 1 -model /home/data/twe-nl-model_epoch5_385.76.t7 -src /home/data/twe.token.test.ori -lm_model /home/data/twe-europarl-lm-train.t7 -replace_unk -output /home/data/twe.token.test.pred

[04/25/19 16:07:44 INFO] Using GPU(s): 1

[04/25/19 16:07:44 INFO] Loading '/home/data/twe-nl-model_epoch5_385.76.t7'...

[04/25/19 16:07:46 INFO] Model seq2seq trained on bitext

[04/25/19 16:07:46 INFO] Loading '/home/data/twe-europarl-lm-train.t7'...

/root/torch/bin/luajit: ./onmt/lm/LM.lua:44: attempt to index field 'options' (a nil value)

stack traceback:

./onmt/lm/LM.lua:44: in function '__init'

/root/torch/share/lua/5.1/torch/init.lua:91: in function 'new'

./onmt/translate/Translator.lua:228: in function '__init'

/root/torch/share/lua/5.1/torch/init.lua:91: in function 'new'

translate.lua:80: in function 'main'

translate.lua:365: in main chunk

[C]: in function 'dofile'

/root/torch/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk

[C]: at 0x00405d50

Can you help me with that??
Kind regards
Claudia

Hi,

This is possibly not well supported as it was rarely used. Right now, I can only recommend to try looking at the code to fix it, or find another tool.