Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-08-24 22:11:35 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-08-24 22:11:35 +0400
commitfa56d7861f150c9b5d716d34375ec86ed2b6e5d5 (patch)
tree624d00a24d5fa395f2440a27928683101f2d55cc /phrase-extract
parent69fc00faf9304a9d2745564579e71ac5db129bbd (diff)
word alignment info for hiero grammar
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/score.cpp4
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