diff options
author | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-15 19:04:19 +0400 |
---|---|---|
committer | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-15 19:04:19 +0400 |
commit | 568cff8e3452b098c056d13e61174019c64664df (patch) | |
tree | 90ad74e061e518e92828f29312a62f986bf1c8e5 /scripts | |
parent | 467fc4c97c9163b22d0fb27a2c2f1806bee90718 (diff) |
fixed serious stupid bug: value ranges were ignored and min. and max were set to the starting value
this bug occurred only if lambdas were supplied on command line, not with the default lambdas and ranges
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@753 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/training/mert-moses.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/training/mert-moses.pl b/scripts/training/mert-moses.pl index 58f7c4f01..2bcdf9f63 100755 --- a/scripts/training/mert-moses.pl +++ b/scripts/training/mert-moses.pl @@ -270,8 +270,8 @@ if (defined $___LAMBDA) { foreach my $startminmax (split/;/,$values) { if ($startminmax =~ /^(-?[\.\d]+),(-?[\.\d]+)-(-?[\.\d]+)$/) { my $start = $1; - my $min = $1; - my $max = $1; + my $min = $2; + my $max = $3; push @{$use_triples->{$name}}, [$start, $min, $max]; } else { |