Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskyload <skyload@1f5c12ca-751b-0410-a591-d2e778427230>2010-04-21 17:47:52 +0400
committerskyload <skyload@1f5c12ca-751b-0410-a591-d2e778427230>2010-04-21 17:47:52 +0400
commit448c99f6a9dc4b1e5c59e5301860f77df4b8afcc (patch)
tree43578c8afe727845919263cc98432dcf834a7208
parentbde8193ec022ba7807e38ba232b58012b8786e43 (diff)
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/DPR_MOSES@3189 1f5c12ca-751b-0410-a591-d2e778427230
-rw-r--r--scripts/training/mert-moses-new.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/training/mert-moses-new.pl b/scripts/training/mert-moses-new.pl
index a850c9989..c25276761 100644
--- a/scripts/training/mert-moses-new.pl
+++ b/scripts/training/mert-moses-new.pl
@@ -55,6 +55,7 @@ my $default_triples = {
# these two basic models exist even if not specified, they are
# not associated with any model file
"w" => [ [ 0.0, -1.0, 1.0 ] ], # word penalty
+ "wDPR" =>[[0.5,0.0,1.5]], #the DPR weight
};
my $additional_triples = {
@@ -80,7 +81,7 @@ my $additional_triples = {
# moses.ini file uses FULL names for lambdas, while this training script internally (and on the command line)
# uses ABBR names.
-my $ABBR_FULL_MAP = "d=weight-d lm=weight-l tm=weight-t w=weight-w g=weight-generation lex=weight-lex";
+my $ABBR_FULL_MAP = "d=weight-d lm=weight-l tm=weight-t w=weight-w g=weight-generation lex=weight-lex wDPR=wDPR";
my %ABBR2FULL = map {split/=/,$_,2} split /\s+/, $ABBR_FULL_MAP;
my %FULL2ABBR = map {my ($a, $b) = split/=/,$_,2; ($b, $a);} split /\s+/, $ABBR_FULL_MAP;