diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-04 21:25:00 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-04 21:25:00 +0300 |
commit | 7fa5ebc2e4bcce0ab2202f8bc636c4c9e13510d4 (patch) | |
tree | 2820c341527a9a1c3d11e1302cee6959f6386f42 /regression-testing/MosesRegressionTesting.pm | |
parent | 55f600531fd34e5631dd8a2d14b43c979ef5a2e4 (diff) |
Avoid lines in moses.ini files that have been commented out.
Diffstat (limited to 'regression-testing/MosesRegressionTesting.pm')
-rw-r--r-- | regression-testing/MosesRegressionTesting.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regression-testing/MosesRegressionTesting.pm b/regression-testing/MosesRegressionTesting.pm index e7e7e794e..6cf535219 100644 --- a/regression-testing/MosesRegressionTesting.pm +++ b/regression-testing/MosesRegressionTesting.pm @@ -78,7 +78,7 @@ sub get_nbestlist open MI, "<$moses_ini" or die "Couldn't read $moses_ini"; while (my $l = <MI>) { - if ($l =~ /\[n-best-list\]/i){ + if ($l =~ /^\[n-best-list\]/i){ chomp($nbestfile = <MI>); chomp($nbestsize = <MI>); } |