diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-08-24 22:11:35 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-08-24 22:11:35 +0400 |
commit | fa56d7861f150c9b5d716d34375ec86ed2b6e5d5 (patch) | |
tree | 624d00a24d5fa395f2440a27928683101f2d55cc /phrase-extract | |
parent | 69fc00faf9304a9d2745564579e71ac5db129bbd (diff) |
word alignment info for hiero grammar
Diffstat (limited to 'phrase-extract')
-rw-r--r-- | phrase-extract/score.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phrase-extract/score.cpp b/phrase-extract/score.cpp index 20028f6b4..225b5f2c9 100644 --- a/phrase-extract/score.cpp +++ b/phrase-extract/score.cpp @@ -550,6 +550,10 @@ void outputPhrasePair(const PhraseAlignmentCollection &phrasePair, float totalCo int sourcePos = *(bestAlignment->alignedToT[ j ].begin()); phraseTableFile << sourcePos << "-" << j << " "; } + else if (wordAlignmentFlag) { + int sourcePos = *(bestAlignment->alignedToT[ j ].begin()); + phraseTableFile << sourcePos << "-" << j << " "; + } } } else if (wordAlignmentFlag) { // alignment info in pb model |