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 <hieuhoang@gmail.com>2015-10-25 16:37:59 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-25 16:37:59 +0300
commit97b2aa5663e97079145fb494bf97e1b2997b4161 (patch)
treef8a68fa4ea40bb99c21cd26e7f02a27ddcc48187 /moses/TrellisPath.cpp
parent84b1c4b4c0c02362cdb35b55e08196d03b993baf (diff)
WordsRange -> Range
Diffstat (limited to 'moses/TrellisPath.cpp')
-rw-r--r--moses/TrellisPath.cpp6
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);