mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-17 14:17:13 +03:00
Avoid lines in moses.ini files that have been commented out.
This commit is contained in:
parent
55f600531f
commit
7fa5ebc2e4
@ -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>);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user