When trying to activate the replace_unk option in train.lua, I get this error:
[10/06/17 14:40:36 INFO] Saving validation translation to '/home/DATA/MANAGEMENT4/onmt-fr-en-modelDYN_epoch41_validation_translation.txt'...
/home/lm-dev8/torch/install/bin/luajit: ./onmt/translate/Translator.lua:275: attempt to call method 'max' (a nil value)
stack traceback:
./onmt/translate/Translator.lua:275: in function 'buildTargetWords'
./onmt/evaluators/TranslationEvaluator.lua:42: in function 'eval'
./onmt/train/Trainer.lua:172: in function 'eval'
./onmt/train/Trainer.lua:432: in function 'train'
train.lua:194: in function 'main'
train.lua:199: in main chunk
[C]: in function 'dofile'
...dev8/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50