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/TrellisPath.cpp | |
parent | 84b1c4b4c0c02362cdb35b55e08196d03b993baf (diff) |
WordsRange -> Range
Diffstat (limited to 'moses/TrellisPath.cpp')
-rw-r--r-- | moses/TrellisPath.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/TrellisPath.cpp b/moses/TrellisPath.cpp index 36397e006..7b7baa815 100644 --- a/moses/TrellisPath.cpp +++ b/moses/TrellisPath.cpp @@ -226,7 +226,7 @@ Phrase TrellisPath::GetSurfacePhrase() const return ret; } -WordsRange TrellisPath::GetTargetWordsRange(const Hypothesis &hypo) const +Range TrellisPath::GetTargetWordsRange(const Hypothesis &hypo) const { size_t startPos = 0; @@ -235,14 +235,14 @@ WordsRange TrellisPath::GetTargetWordsRange(const Hypothesis &hypo) const size_t endPos = startPos + currHypo->GetCurrTargetLength() - 1; if (currHypo == &hypo) { - return WordsRange(startPos, endPos); + return Range(startPos, endPos); } startPos = endPos + 1; } // have to give a hypo in the trellis path, but u didn't. UTIL_THROW(util::Exception, "Hypothesis not found"); - return WordsRange(NOT_FOUND, NOT_FOUND); + return Range(NOT_FOUND, NOT_FOUND); } TO_STRING_BODY(TrellisPath); |