Avoid lines in moses.ini files that have been commented out.

This commit is contained in:
Ulrich Germann 2015-11-04 18:25:00 +00:00
parent 55f600531f
commit 7fa5ebc2e4

View File

@ -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>);
}