diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-25 16:37:59 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-25 16:37:59 +0300 |
commit | 97b2aa5663e97079145fb494bf97e1b2997b4161 (patch) | |
tree | f8a68fa4ea40bb99c21cd26e7f02a27ddcc48187 /moses/TranslationOptionCollectionLattice.cpp | |
parent | 84b1c4b4c0c02362cdb35b55e08196d03b993baf (diff) |
WordsRange -> Range
Diffstat (limited to 'moses/TranslationOptionCollectionLattice.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionLattice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/TranslationOptionCollectionLattice.cpp b/moses/TranslationOptionCollectionLattice.cpp index 2cb3b6387..c3b5765e7 100644 --- a/moses/TranslationOptionCollectionLattice.cpp +++ b/moses/TranslationOptionCollectionLattice.cpp @@ -47,7 +47,7 @@ TranslationOptionCollectionLattice size_t nextNode = nextNodes[i]; size_t endPos = startPos + nextNode - 1; - WordsRange range(startPos, endPos); + Range range(startPos, endPos); if (range.GetNumWordsCovered() > maxPhraseLength) { continue; @@ -98,7 +98,7 @@ void TranslationOptionCollectionLattice::Extend(const InputPath &prevPath, const size_t nextNode = nextNodes[i]; size_t endPos = nextPos + nextNode - 1; - WordsRange range(startPos, endPos); + Range range(startPos, endPos); size_t maxPhraseLength = StaticData::Instance().GetMaxPhraseLength(); if (range.GetNumWordsCovered() > maxPhraseLength) { @@ -144,7 +144,7 @@ void TranslationOptionCollectionLattice::CreateTranslationOptions() TargetPhraseCollection::shared_ptr tpColl = path.GetTargetPhrases(phraseDictionary); - const WordsRange &range = path.GetWordsRange(); + const Range &range = path.GetWordsRange(); if (tpColl && tpColl->GetSize()) { TargetPhraseCollection::const_iterator iter; |