Merge branch 'master' of github.com:moses-smt/mosesdecoder

This commit is contained in:
Hieu Hoang 2013-05-17 18:24:38 +01:00
commit 668bda8623

View File

@ -14,10 +14,10 @@ open(BASEINI, $ARGV[0]) or die "Cannot open: $!";
while(my $line = <BASEINI>) {
chomp($line);
if ($line =~ /\[weight\]/) {
$inWeightSection = 1;
$inWeightSection = 1;
}
elsif ($line =~ /\[[a-zA-Z0-0]*\]/) {
$inWeightSection = 0;
$inWeightSection = 0;
}
if (!$inWeightSection) {
@ -34,6 +34,9 @@ while(my $line = <STDIN>) {
if ($line =~ /\[weight\]/) {
$inWeightSection = 1;
}
elsif ($line =~ /\[weight-file\]/) {
$inWeightSection = 1;
}
elsif ($line =~ /\[[a-zA-Z0-0]*\]/) {
$inWeightSection = 0;
}