Merge pull request #37 from neubig/ems-interpolate-scientific

Fixed crash in interpolation for small lambdas
This commit is contained in:
Hieu Hoang 2013-06-07 16:24:32 -07:00
commit a974bbafac

View File

@ -135,7 +135,7 @@ sub interpolate {
die "Failed to mix models: $mixerr" if $mixexitcode != 0;
my $mix = $mixout;
`rm $tmp/iplm.$$.*`;
$mix =~ /best lambda \(([\d\. ]+)\)/ || die("ERROR: computing lambdas failed: $mix");
$mix =~ /best lambda \(([\d\. e-]+)\)/ || die("ERROR: computing lambdas failed: $mix");
my @LAMBDA = split(/ /,$1);
# create new language model