What was the exact command you used to compile moses? ie. ./bjam .... It doesn't look like the cmph library was linked to moses so the compact phrase-table wasn't compiled.
On 10/03/2016 21:33, sofiane bouzaher wrote: > Hi,we are trying use the moses toolkit for a Rapid Construction of > Supervised Word Sense Disambiguation System for Lesser-resourced > Languages (arabic) we use the virtual machine (ubuntu 14.04 > 32-bit.ova 30-Jan-2015 16:41 7.2G), we we have compiled moses withs > cmph2.0 and boost_ 1_57_0 as recommanded alla steps passed > succufully, but when we try to run Moses with compact phrase table > using "/home/hieu/workspace/github/mosesdecoder/bin/moses -f > /home/hieu/working/binarised-model/moses.ini" we get this error > > hieu@hieu-VirtualBox:~$ > /home/hieu/workspace/github/mosesdecoder/bin/moses -f > /home/hieu/working/binarised-model/moses.ini > Defined parameters (per moses.ini or switch): > config: /home/hieu/working/binarised-model/moses.ini > distortion-limit: 6 > feature: UnknownWordPenalty WordPenalty PhrasePenalty > PhraseDictionaryCompact name=TranslationModel0 num-features=4 > path=/home/hieu/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 > path=/home/hieu/working/binarised-model/reordering-table.minlexr > Distortion KENLM lazyken=0 name=LM0 factor=0 > path=/home/hieu/lm/news-commentary-v8.fr-en.blm.en order=3 > input-factors: 0 > mapping: 0 T 0 > weight: UnknownWordPenalty0= 1 WordPenalty0= -1 PhrasePenalty0= > 0.2 TranslationModel0= 0.2 0.2 0.2 0.2 LexicalReordering0= 0.3 0.3 0.3 > 0.3 0.3 0.3 Distortion0= 0.3 LM0= 0.5 > 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 > path=/home/hieu/working/binarised-model/phrase-table.minphr > input-factor=0 output-factor=0 > Exception: moses/FF/Factory.cpp:321 in void > Moses::FeatureRegistry::Construct(const string&, const string&) threw > UnknownFeatureException because `i == registry_.end()'. > Feature name PhraseDictionaryCompact is not registered. > > > we need help please , > and also an idea for the possibility to use of arabic language ? > > the moses.ini file : > ######################### > ### MOSES CONFIG FILE ### > ######################### > > # input factors > [input-factors] > 0 > > # mapping steps > [mapping] > 0 T 0 > > [distortion-limit] > 6 > > # feature functions > [feature] > UnknownWordPenalty > WordPenalty > PhrasePenalty > PhraseDictionaryCompact name=TranslationModel0 num-features=4 > path=/home/hieu/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 > path=/home/hieu/working/binarised-model/reordering-table.minlexr > Distortion > KENLM lazyken=0 name=LM0 factor=0 > path=/home/hieu/lm/news-commentary-v8.fr-en.blm.en order=3 > > # dense weights for feature functions > [weight] > UnknownWordPenalty0= 1 > WordPenalty0= -1 > PhrasePenalty0= 0.2 > TranslationModel0= 0.2 0.2 0.2 0.2 > LexicalReordering0= 0.3 0.3 0.3 0.3 0.3 0.3 > Distortion0= 0.3 > LM0= 0.5 _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support