diff options
-rw-r--r-- | moses/TranslationModel/CompactPT/PhraseDecoder.cpp | 4 | ||||
-rwxr-xr-x | scripts/generic/binarize4moses2.perl | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/moses/TranslationModel/CompactPT/PhraseDecoder.cpp b/moses/TranslationModel/CompactPT/PhraseDecoder.cpp index 1a1927e2b..739959d3a 100644 --- a/moses/TranslationModel/CompactPT/PhraseDecoder.cpp +++ b/moses/TranslationModel/CompactPT/PhraseDecoder.cpp @@ -221,8 +221,8 @@ TargetPhraseVectorPtr PhraseDecoder::CreateTargetPhraseCollection(const Phrase & size_t sourcePhraseId = m_phraseDictionary.m_hash[MakeSourceKey(sourcePhraseString)]; /* cerr << "sourcePhraseString=" << sourcePhraseString << " " - << sourcePhraseId - << endl; + << sourcePhraseId + << endl; */ if(sourcePhraseId != m_phraseDictionary.m_hash.GetSize()) { // Retrieve compressed and encoded target phrase collection 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"; |