mosesdecoder/mert/example
nicolabertoldi 291260abf7 - made output more compliant with old version
- added PerSCorer.h and BleuScorer.h
- stored feature names
- fixed bug about output of best Point


git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1796 1f5c12ca-751b-0410-a591-d2e778427230
2008-05-27 16:50:52 +00:00
..
NBEST main command for managing feature and error statistics is ready; small example fortesting is available in directory example 2008-05-15 08:35:56 +00:00
README - made output more compliant with old version 2008-05-27 16:50:52 +00:00
README.oldmert - made output more compliant with old version 2008-05-27 16:50:52 +00:00
REF main command for managing feature and error statistics is ready; small example fortesting is available in directory example 2008-05-15 08:35:56 +00:00
REF.0 main command for managing feature and error statistics is ready; small example fortesting is available in directory example 2008-05-15 08:35:56 +00:00
REF.1 main command for managing feature and error statistics is ready; small example fortesting is available in directory example 2008-05-15 08:35:56 +00:00
REF.2 main command for managing feature and error statistics is ready; small example fortesting is available in directory example 2008-05-15 08:35:56 +00:00

extractor=../extractor
mert=../mert
size=15

#to read an nbest file; output is in text format
#$extractor --nbest NBEST --reference REF.0,REF.1,REF.2 --ffile FEATSTAT --scfile SCORESTAT --sctype BLEU
$mert --ifile init.opt --scfile SCORESTAT --ffile FEATSTAT -d $size -verbose 4

exit


#to read a gzipped nbest file; output is in text format
$extractor --nbest NBEST.gz --reference REF.0,REF.1,REF.2 --ffile FEATSTATgz --scfile SCORESTATgz --sctype BLEU
gzip FEATSTATgz SCORESTATgz

$extractor --nbest NBEST --reference REF.0,REF.1,REF.2 --prev-ffile FEATSTAT --prev-scfile SCORESTAT --ffile FEATSTAT2 --scfile SCORESTAT2 --sctype BLEU

$extractor --nbest NBEST.gz --reference REF.0,REF.1,REF.2 --prev-ffile FEATSTATgz.gz --prev-scfile SCORESTATgz.gz --ffile FEATSTAT2gz --scfile SCORESTAT2gz --sctype BLEU

exit