Source features with

(Sergey Zhitansky) #1


I’ve used -case_feature in tokenization and now I’ve got trained model. Now I’m trying to translate few files but have an error:

torch/install/bin/luajit: OpenNMT/onmt/utils/Features.lua:60: expected 1 source features, got 0

Should I use some option for translate.lua and point it to *.source_feature_1.dict somehow ?


(Guillaume Klein) #2


Did you tokenize the test files with -case_feature as well?

(Sergey Zhitansky) #3

Thanks, forgot about that and now it works ! :slight_smile: