segment confusion network in class TranslationOptionCollectionConfusionNet, rather than in PDAImp. Get ready to make it work with any phrase table

This commit is contained in:
Hieu Hoang 2013-06-14 21:22:38 +01:00
parent 0b3a84f730
commit 3516ef42b8

View File

@ -58,6 +58,7 @@ TranslationOptionCollectionConfusionNet::TranslationOptionCollectionConfusionNet
} // for (iter = col.begin(); iter != col.end(); ++iter) {
} // for (size_t startPos = 0; startPos < size; ++startPos) {
// create subphrases by appending words to previous subphrases
for (size_t startPos = 0; startPos < size; ++startPos) {
for (size_t endPos = startPos + 1; endPos < size; ++endPos) {
std::vector<SourcePath> &newSubphrases = GetPhrases(startPos, endPos);