hi cyrine
yes, the format of the ini file has changed in the last year. However, the
decoder still works the same.
You've specified using SRILM but this libray wasn't linked into the
decoder. Either
1. Change SRILM --> KENLM in the ini file
2. Recompile with srilm
./bjam --with-srilm=[path/to/srilm] -a ....
On 17 February 2014 13:37, [email protected] <
[email protected]> wrote:
>
> Hello,
>
> I try to install Moses but i see that there is changes
> I have a problem when i try to do MERT: with this command :
>
>
> ./moses_chart -f /home/cyrine/mosesdecoder/working/model/moses.ini
>
>
>
> the ini config file is like this :
>
>
> #########################
> ### MOSES CONFIG FILE ###
> #########################
>
> # input factors
> [input-factors]
> 0
>
> # mapping steps
> [mapping]
> 0 T 0
>
> [distortion-limit]
> 6
>
> # feature functions
> [feature]
>
>
> PhrasePenalty
>
> PhraseDictionaryMemory name=TranslationModel0 table-limit=20
> num-features=4 path=/home/cyrine/mosesdecoder/tools/model/phrase-table.gz
> input-factor=0 output-factor=0
>
> Distortion
>
> SRILM name=LM0 factor=0 path=/home/cyrine/srilm/bin/i686-gcc4/ANG.lm
> order=3
>
> # dense weights for feature functions
> [weight]
> UnknownWordPenalty0= 1
> WordPenalty0= -1
> PhrasePenalty0= 0.2
> TranslationModel0= 0.2 0.2 0.2 0.2
> Distortion0= 0.3
> LM0= 0.5
>
>
> But i get this error :
> moses_chart -f /home/mosesdecoder/working/model/moses.ini
> Defined parameters (per moses.ini or switch):
> config: /home/cyrine/mosesdecoder/working/model/moses.ini
> distortion-limit: 6
> feature: PhrasePenalty PhraseDictionaryMemory name=TranslationModel0
> table-limit=20 num-features=4
> path=/home/cyrine/mosesdecoder/tools/model/phrase-table.gz input-factor=0
> output-factor=0 Distortion SRILM name=LM0 factor=0
> path=/home/cyrine/srilm/bin/i686-gcc4/ANG.lm 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 Distortion0= 0.3 LM0= 0.5
> .
> line=PhrasePenalty
> FeatureFunction: PhrasePenalty0 start: 0 end: 0
> line=PhraseDictionaryMemory name=TranslationModel0 table-limit=20
> num-features=4 path=/home/cyrine/mosesdecoder/tools/model/phrase-table.gz
> input-factor=0 output-factor=0
> FeatureFunction: TranslationModel0 start: 1 end: 4
> line=Distortion
> FeatureFunction: Distortion0 start: 5 end: 5
> line=SRILM name=LM0 factor=0 path=/home/cyrine/srilm/bin/i686-gcc4/ANG.lm
> order=3
> Exception: moses/FF/Factory.cpp:235 in void
> Moses::FeatureRegistry::Construct(const string&, const string&) threw
> UnknownFeatureException because `i == registry_.end()'.
> Feature name SRILM is not registered.
> Erreur de segmentation (core dumped)
>
> --
>
> Any idea please
>
> Thnk you in advance
>
>
> *Cyrine*
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support