mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-19 23:27:46 +03:00
Fix handling of scientific notation
This commit is contained in:
parent
8674a976be
commit
96217a0985
@ -16,7 +16,7 @@ while(<WEIGHT>) {
|
||||
if (/^\[weight\-(\S+)\]/) {
|
||||
$current_weight = $1;
|
||||
}
|
||||
elsif ($current_weight && /^([\-\d\.]+)([Ee][+-]?[\d]+)?$/) {
|
||||
elsif ($current_weight && /^(([\-\d\.]+)([Ee][+-]?[\d]+)?)$/) {
|
||||
push @{$WEIGHT{$current_weight}},$1;
|
||||
}
|
||||
elsif (/^\[/) {
|
||||
|
Loading…
Reference in New Issue
Block a user