Hi Sanjanasri,
this error occurs when Moses was compiled without the option '--with-nplm'.
best wishes,
Rico
On 15.09.2015 15:08, Sanjanashree Palanivel wrote:
Dear Rico,
I updated moses and NPLM has been compiled succesfully
with moses. However, when I perform decoding I am getting an error.
Defined parameters (per moses.ini or switch):
config:
/home/sanjana/Documents/SMT/ICON15/Health/BL/Ta_H/model/moses.ini
distortion-limit: 6
feature: UnknownWordPenalty WordPenalty PhrasePenalty
PhraseDictionaryMemory name=TranslationModel0 num-features=4
path=/home/sanjana/Documents/SMT/ICON15/Health/BL/Ta_H/model/phrase-table.gz
input-factor=0 output-factor=0 Distortion KENLM lazyken=0 name=LM0
factor=0
path=/home/sanjana/Documents/SMT/LM/Hindi/monolin80k.hi1.bin
order=3 NeuralLM factor=0 name=LM1 order=3
path=/home/sanjana/Documents/SMT/LM/Hindi/hin_out.txt
input-factors: 0
mapping: 0 T 0
weight: Distortion0= 0.136328 LM0= 0.135599 LM1= 0.5
WordPenalty0= -0.488892 PhrasePenalty0= 0.0826147
TranslationModel0= 0.0104273 0.0663914 0.0254094 0.0543384
UnknownWordPenalty0= 1
line=UnknownWordPenalty
FeatureFunction: UnknownWordPenalty0 start: 0 end: 0
line=WordPenalty
FeatureFunction: WordPenalty0 start: 1 end: 1
line=PhrasePenalty
FeatureFunction: PhrasePenalty0 start: 2 end: 2
line=PhraseDictionaryMemory name=TranslationModel0 num-features=4
path=/home/sanjana/Documents/SMT/ICON15/Health/BL/Ta_H/model/phrase-table.gz
input-factor=0 output-factor=0
FeatureFunction: TranslationModel0 start: 3 end: 6
line=Distortion
FeatureFunction: Distortion0 start: 7 end: 7
line=KENLM lazyken=0 name=LM0 factor=0
path=/home/sanjana/Documents/SMT/LM/Hindi/monolin80k.hi1.bin order=3
FeatureFunction: LM0 start: 8 end: 8
line=NeuralLM factor=0 name=LM1 order=3
path=/home/sanjana/Documents/SMT/LM/Hindi/hin_out.txt
Exception: moses/FF/Factory.cpp:349 in void
Moses::FeatureRegistry::Construct(const string&, const string&)
threw UnknownFeatureException because `i == registry_.end()'.
Feature name NeuralLM is not registered.
I added following 2 lines in my moses file
NeuralLM factor=0 name=LM1 order=5 path=/path/to/nplmmodel
LM1= 0.5
On Tue, Sep 15, 2015 at 5:06 PM, Sanjanashree Palanivel
<[email protected] <mailto:[email protected]>> wrote:
Thank you for your earnest response. I will update moses and I
will try
On Tue, Sep 15, 2015 at 4:22 PM, Rico Sennrich
<[email protected] <mailto:[email protected]>> wrote:
Hello Sanjanasri,
this looks like a version mismatch between Moses and NPLM.
Specifically, you're using an older Moses commit that is only
compatible with nplm 0.2 (or specifically, Kenneth's fork at
https://github.com/kpu/nplm ).
If you use the latest Moses version from
https://github.com/moses-smt/mosesdecoder , and the latest
nplm version from https://github.com/moses-smt/nplm , it
should work.
best wishes,
Rico
On 15.09.2015 08 <tel:15.09.2015%2008>:24, Sanjanashree
Palanivel wrote:
Dear all,
I tried building language model using NPLM.
Llanguage model was build succesfully, but, when I tried to
compile NPLM with Moses using "./bjam
--with-nplm=path/to/nplm" I am getting an error. I am using
boost 1.55. I am attaching the log file for reference. I
dont know where I went wrong. Any help would be appreciated.
--
Thanks and regards,
Sanjanasri J.P
_______________________________________________
Moses-support mailing list
[email protected] <mailto:[email protected]>
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected] <mailto:[email protected]>
http://mailman.mit.edu/mailman/listinfo/moses-support
--
Thanks and regards,
Sanjanasri J.P
--
Thanks and regards,
Sanjanasri J.P
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support