mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
Fix annoying warnings on mert-moses.pl.
This commit is contained in:
parent
7d457f5049
commit
145a47ddf6
@ -367,6 +367,8 @@ $scconfig = "--scconfig $scconfig" if ($scconfig);
|
||||
|
||||
my $mert_extract_args=$mertargs;
|
||||
$mert_extract_args .=" $scconfig";
|
||||
|
||||
$extractorargs = "" unless $extractorargs;
|
||||
$mert_extract_args .=" $extractorargs";
|
||||
|
||||
$mertmertargs = "" if !defined $mertmertargs;
|
||||
@ -678,7 +680,7 @@ while(1) {
|
||||
my $score_file = "run$run.${base_score_file}";
|
||||
|
||||
my $cmd = "$mert_extract_cmd $mert_extract_args --scfile $score_file --ffile $feature_file -r ".join(",", @references)." -n $nbest_file";
|
||||
$cmd = create_extractor_script($cmd, $___WORKING_DIR);
|
||||
$cmd = &create_extractor_script($cmd, $___WORKING_DIR);
|
||||
|
||||
&submit_or_exec($cmd,"extract.out","extract.err");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user