mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
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:
parent
0b3a84f730
commit
3516ef42b8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user