Another question about lm.lua… I have tried everything I can think of and cannot get lm.lua to generate text from a trained model in sample mode. I’ve tried with and without features, ensured the test text was tokenized exactly the same as the training text, etc. However, no matter what I try, I’m getting the error
attempt to call method 'isContiguous' (a nil value)
from /nn/LookupTable.lua, which ultimately traces back to the sample function in onmt/lm/LM.lua. Is there a trick to formatting the text provided by the -src option? I’ve been putting my test text into a file since providing text at the command line gives me a “No such file or directory” error. What am I missing here?
Oh, and using the score option works fine. I’m only getting errors when trying use the sample option. If anyone can clue me in to what is expected for -src, I’d greatly appreciate it. Thanks!