Hi

If you look at the error message:
> Exception: moses/Word.cpp:108 in void 
> Moses::Word::CreateFromString(Moses::FactorDirection, const 
> std::vector<long unsigned int>&, const StringPiece&, bool) threw 
> StrayFactorException because `fit\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'.
> You have configured 1 factors but the word || contains factor 
> delimiter | too many times.
> Exit code: 1
you can see what the problem is. The | character is a special character 
in Moses, so you should remove it or escape it,

cheers - Barry


On 02/09/13 02:52, 真水无香 wrote:
> Hi:
>   I have a problem with tuning step.
>   My commend is : 
> /home/tempadmin/mtdir/moses/scripts/training/mert-moses.pl 
> /home/tempadmin/hp/tuning/CH400-fenci-quanbanjiao.txt 
> /home/tempadmin/hp/tuning/LD-bf 
> /home/tempadmin/mtdir/moses/moses-chart-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses_chart
>  
> /home/tempadmin/hp/test/model/moses.ini --working-dir 
> /home/tempadmin/hp/tuning/mert --filtercmd 
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'/home/tempadmin/mtdir/moses/scripts/training/filter-model-given-input.pl
>  
> -hierarchical\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -rootdir 
> /home/tempadmin/mtdir/moses/scripts/ --mertdir 
> /home/tempadmin/mtdir/moses/bin/ --decoder-flags 
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"-v 0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" 
> &>/home/tempadmin/hp/tuning/mert.out
>
>
>
> mert.out document is as follow:
> Using SCRIPTS_ROOTDIR: /home/tempadmin/mtdir/moses/scripts/
> filtering the phrase tables... Mon Sep  2 08:57:49 CST 2013
> exec: 
> /home/tempadmin/mtdir/moses/scripts/training/filter-model-given-input.pl 
> -hierarchical ./filtered /home/tempadmin/hp/test/model/moses.ini 
> /home/tempadmin/hp/tuning/CH400-fenci-quanbanjiao.txt
> Executing: 
> /home/tempadmin/mtdir/moses/scripts/training/filter-model-given-input.pl 
> -hierarchical ./filtered /home/tempadmin/hp/test/model/moses.ini 
> /home/tempadmin/hp/tuning/CH400-fenci-quanbanjiao.txt > 
> filterphrases.out 2> filterphrases.err
> Asking moses for feature names and values from filtered/moses.ini
> Executing: 
> /home/tempadmin/mtdir/moses/moses-chart-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses_chart
>  
> -v 0 -config filtered/moses.ini  -inputtype 0 -show-weights > 
> ./features.list
> /home/tempadmin/mtdir/moses/moses-chart-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi
> line=UnknownWordPenalty
> WEIGHT UnknownWordPenalty0=1.000,
> line=WordPenalty
> WEIGHT WordPenalty0=-1.000,
> line=PhraseDictionaryMemory name=TranslationModel0 table-limit=20 
> num-features=5 
> path=/home/tempadmin/hp/tuning/mert/filtered/phrase-table.0-0.1.1.gz 
> input-factor=0 output-factor=0
> WEIGHT TranslationModel0=0.200,0.200,0.200,0.200,0.200,
> line=PhraseDictionaryMemory name=TranslationModel1 num-features=1 
> path=/home/tempadmin/hp/test/model/glue-grammar input-factor=0 
> output-factor=0
> WEIGHT TranslationModel1=1.000,
> line=SRILM name=LM0 factor=0 path=/home/tempadmin/hp/lm/mg-lm.txt order=3
> WEIGHT LM0=0.500,
> /home/tempadmin/hp/lm/mg-lm.txt: line 5614: warning: non-zero 
> probability for <unk> in closed-vocabulary LM
> Start loading text SCFG phrase table. Moses  format : [2.000] seconds
> Exception: moses/Word.cpp:108 in void 
> Moses::Word::CreateFromString(Moses::FactorDirection, const 
> std::vector<long unsigned int>&, const StringPiece&, bool) threw 
> StrayFactorException because `fit\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'.
> You have configured 1 factors but the word || contains factor 
> delimiter | too many times.
> Exit code: 1
> Failed to run moses with the config filtered/moses.ini at 
> /home/tempadmin/mtdir/moses/scripts/training/mert-moses.pl line 1271.
>
>
>
> Thank you for your help.
>
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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

Reply via email to