Download NiuTrans Open Source Statistical Machine Translation System
Transcript
101 Command $ cd scripts/ $ perl NiuTrans-hierarchy-generate-mert-config.pl \ -rule ../work/model.hierarchy/hierarchy.rule.table \ -lmdir ../work/lm/ \ -nref 1 \ -ngram 3 \ -out ../work/NiuTrans.hierarchy.user.config where -rule specifies the hierarchy rule table. -lmdir specifies the directory that holds the n-gram language model and the target-side vocabulary. -nref specifies how many reference translations per source-sentence are provided. -ngram specifies the order of n-gram language model. -out specifies the output (i.e. a config file). • Output: a config file is generated and placed in ”NiuTrans/work/”. Output (NiuTrans/work/) - NiuTrans.hierarchy.user.config B.2.4 B configuration file for MERT and decoding Weight Tuning • Instructions Command $ perl NiuTrans-hierarchy-mert-model.pl \ -config ../work/NiuTrans.hierarchy.user.config \ -dev ../sample-data/sample-submission-version/Dev-set/Niu.dev.txt \ -nref 1 \ -round 3 \ -log ../work/mert-model.log