Please subscribe to the Moses mailing list before posting to it. You can subscribe here:

   http://mailman.mit.edu/mailman/listinfo/moses-support

To answer your question, you must compile moses with the flag

  ./bjam --with-cmph=[wherever the cmph library is]

This will add the PhraseDictionaryCompact to Moses



-------- Forwarded Message --------
Subject:        moses help
Date:   Tue, 27 Sep 2016 14:56:30 +0800
From:   gaojin35 <[email protected]>
To:     moses-support <[email protected]>



Look forward to hearing from you ! Thanks!




Hello,
I've been following the Moses manual to create a Baseline System but I am
now stuck at the Testing section. I get this strange message as i tried to
run moses.ini. Appreciate any help thanks.

gaojin@gaojin-Dell-System-Inspiron-M4110:~/working$ ~/mosesdecoder/bin/moses -f 
~/working/binarised-model/moses.ini
Defined parameters (per moses.ini or switch):
        config: /home/gaojin/working/binarised-model/moses.ini 
        distortion-limit: 6 
        feature: UnknownWordPenalty WordPenalty PhrasePenalty 
PhraseDictionaryCompact name=TranslationModel0 num-features=4 
home/gaojin/working/binarised-model/phrase-table.minphr input-factor=0 
output-factor=0 LexicalReordering name=LexicalReordering0 num-features=6 
type=wbe-msd-bidirectional-fe-allff input-factor=0 output-factor=0 
home/gaojin/working/binarised-model/reordering-table.minlexr Distortion KENLM 
name=LM0 factor=0 path=/home/gaojin/lm/news-commentary-v8.fr-en.blm.en order=3 
        input-factors: 0 
        mapping: 0 T 0 
        threads: 4 
        weight: LexicalReordering0= 0.208594 0.0638358 0.0566092 0.0204888 
0.034497 0.019643 Distortion0= 0.0558739 LM0= 0.0997565 WordPenalty0= 0.118491 
PhrasePenalty0= 0.179373 TranslationModel0= 0.045094 0.0446332 0.038174 
-0.0149363 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=PhraseDictionaryCompact name=TranslationModel0 num-features=4 
home/gaojin/working/binarised-model/phrase-table.minphr input-factor=0 
output-factor=0
Exception: moses/FF/Factory.cpp:384 in void 
Moses::FeatureRegistry::Construct(const string&, const string&) threw 
UnknownFeatureException because `i == registry_.end()'.
Feature name PhraseDictionaryCompact is not registered.

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to