mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
Merge branch 'master' of github.com:moses-smt/mosesdecoder
This commit is contained in:
commit
668bda8623
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user