diff --git a/scripts/training/phrase-extract/score.cpp b/scripts/training/phrase-extract/score.cpp index 905564305..22e91921b 100644 --- a/scripts/training/phrase-extract/score.cpp +++ b/scripts/training/phrase-extract/score.cpp @@ -78,7 +78,6 @@ void outputPhrasePair( vector< PhraseAlignment * > &, float ); double computeLexicalTranslation( PHRASE &, PHRASE &, PhraseAlignment * ); ofstream phraseTableFile; -ofstream wordAlignmentFile; LexicalTable lexTable; PhraseTable phraseTableT; @@ -107,7 +106,6 @@ int main(int argc, char* argv[]) char* fileNameExtract = argv[1]; char* fileNameLex = argv[2]; char* fileNamePhraseTable = argv[3]; - char* fileNameWordAlignment; for(int i=4;i &phrasePair, float totalCount phraseTableFile << " ||| " << totalCount; phraseTableFile << endl; - - // optional output of word alignments - if (! inverseFlag && wordAlignmentFlag) - { - // source phrase - for(int j=0;jalignedToT.size();j++) - { - const set< size_t > &aligned = bestAlignment->alignedToT[j]; - for (set< size_t >::const_iterator p(aligned.begin()); p != aligned.end(); ++p) - { - wordAlignmentFile << " " << *p << "-" << j; - } - } - wordAlignmentFile << endl; - } } double computeLexicalTranslation( PHRASE &phraseS, PHRASE &phraseT, PhraseAlignment *alignment ) {