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.h
parent84b1c4b4c0c02362cdb35b55e08196d03b993baf (diff)
WordsRange -> Range
Diffstat (limited to 'moses/TrellisPath.h')
-rw-r--r--moses/TrellisPath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TrellisPath.h b/moses/TrellisPath.h
index 89efb32e4..1e6914a5c 100644
--- a/moses/TrellisPath.h
+++ b/moses/TrellisPath.h
@@ -94,7 +94,7 @@ public:
const boost::shared_ptr<ScoreComponentCollection> GetScoreBreakdown() const;
//! get target words range of the hypo within n-best trellis. not necessarily the same as hypo.GetCurrTargetWordsRange()
- WordsRange GetTargetWordsRange(const Hypothesis &hypo) const;
+ Range GetTargetWordsRange(const Hypothesis &hypo) const;
Phrase GetTargetPhrase() const;
Phrase GetSurfacePhrase() const;
@@ -109,7 +109,7 @@ inline std::ostream& operator<<(std::ostream& out, const TrellisPath& path)
const size_t sizePath = path.m_path.size();
for (int pos = (int) sizePath - 1 ; pos >= 0 ; pos--) {
const Hypothesis *edge = path.m_path[pos];
- const WordsRange &sourceRange = edge->GetCurrSourceWordsRange();
+ const Range &sourceRange = edge->GetCurrSourceWordsRange();
out << edge->GetId() << " " << sourceRange.GetStartPos() << "-" << sourceRange.GetEndPos() << ", ";
}
// scores