diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2016-10-05 23:35:36 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2016-10-05 23:35:36 +0300 |
commit | 2679c30c1b534b1d83b0cd57dc32bcf191fc48f3 (patch) | |
tree | 19eee8ecaca69077a44c725c9af0085a287715d1 | |
parent | bcea640c9aad4da3ce5829daa203a645e1005e80 (diff) |
--num-scores
-rwxr-xr-x | scripts/generic/binarize4moses2.perl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/generic/binarize4moses2.perl b/scripts/generic/binarize4moses2.perl index 5765c3705..a703cc241 100755 --- a/scripts/generic/binarize4moses2.perl +++ b/scripts/generic/binarize4moses2.perl @@ -12,6 +12,7 @@ my $mosesDir = "$RealBin/../.."; my $ptPath; my $lexRoPath; my $outPath; +my $numScores = 4; my $numLexScores; my $pruneNum = 0; my $scfg = 0; @@ -19,6 +20,7 @@ my $scfg = 0; GetOptions("phrase-table=s" => \$ptPath, "lex-ro=s" => \$lexRoPath, "output-dir=s" => \$outPath, + "num-scores=s" => \$numScores, "num-lex-scores=i" => \$numLexScores, "prune=i" => \$pruneNum, "scfg" => \$scfg @@ -55,7 +57,7 @@ else { systemCheck($cmd); } -$cmd = "$mosesDir/bin/CreateProbingPT2 --log-prob --input-pt $tempPath/pt.txt.gz --output-dir $outPath"; +$cmd = "$mosesDir/bin/CreateProbingPT2 --num-scores $numScores --log-prob --input-pt $tempPath/pt.txt.gz --output-dir $outPath"; if (defined($lexRoPath)) { $cmd .= " --num-lex-scores $numLexScores"; |