Download NiuTrans Open Source Statistical Machine Translation System
Transcript
82 Command (tree-to-string) $ cd NiuTrans/scripts/ $ mkdir ../work/config/ -p $ perl NiuTrans-syntax-generate-mert-config.pl \ -model t2s \ -syntaxrule ../work/syntax.tree2string/syntax.tree2string.rule.scored.filter.format \ -lmdir ../work/lm/ \ -nref 1 \ -ngram 3 \ -out ../work/config/NiuTrans.syntax.t2s.user.config Command (tree-to-tree) $ cd NiuTrans/scripts/ $ mkdir ../work/config/ -p $ perl NiuTrans-syntax-generate-mert-config.pl \ -model t2t \ -syntaxrule ../work/syntax.tree2tree/syntax.tree2tree.rule.scored.filter.format \ -lmdir ../work/lm/ \ -nref 1 \ -ngram 3 \ -out ../work/config/NiuTrans.syntax.t2t.user.config where -model specifies what type of rules can be used to mert, its value can be ”s2t”, ”t2s” or ”t2t”. -syntaxrule specifies the syntax-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: The output is a file in ”NiuTrans/work/config/”. Users can modify this generated config file as needed.