Download NiuTrans Open Source Statistical Machine Translation System

Transcript
119
B.5.4
Weight Tuning
• Instructions
Command
$ cd NiuTrans/scripts/
$ perl NiuTrans-syntax-mert-model.pl \
-model
t2t \
-config
../work/config/NiuTrans.syntax.t2t.user.config \
-dev
../sample-data/sample-submission-version/Dev-set/Niu.dev.tree.txt \
-nref
1 \
-round
3 \
-log
../work/syntax-t2t-mert-model.log
where
-model specifies what type of rules can be used to mert, its value can be ”s2t”, ”t2s” or ”t2t”.
-config specifies the configuration file generated in the previous steps.
-dev specifies the development dataset (or tuning set) for weight tuning.
-nref specifies how many reference translations per source-sentence are provided.
-round specifies how many rounds the MERT performs (by default, 1 round = 15 MERT iterations).
-log specifies the log file generated by MERT.
• Output: the optimized feature weights are recorded in the configuration file ”NiuTrans/work/config/NiuTrans.syntax.t2t.user.config”. They will then be used in decoding the test sentences.