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/ChartCellCollection.h
parent84b1c4b4c0c02362cdb35b55e08196d03b993baf (diff)
WordsRange -> Range
Diffstat (limited to 'moses/ChartCellCollection.h')
-rw-r--r--moses/ChartCellCollection.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/moses/ChartCellCollection.h b/moses/ChartCellCollection.h
index ac8e0fd38..deac97c4a 100644
--- a/moses/ChartCellCollection.h
+++ b/moses/ChartCellCollection.h
@@ -23,7 +23,7 @@
#include <boost/ptr_container/ptr_vector.hpp>
#include "InputType.h"
#include "ChartCell.h"
-#include "WordsRange.h"
+#include "Range.h"
#include "InputPath.h"
namespace Moses
@@ -51,7 +51,7 @@ public:
* gets it from there :-(. The span is actually stored as a reference,
* which needs to point somewhere, so I have it refer to the ChartCell.
*/
- const WordsRange &range = inner[0]->GetCoverage();
+ const Range &range = inner[0]->GetCoverage();
m_source.push_back(new ChartCellLabel(range, input.GetWord(startPos)));
}
@@ -60,11 +60,11 @@ public:
virtual ~ChartCellCollectionBase();
- const ChartCellBase &GetBase(const WordsRange &coverage) const {
+ const ChartCellBase &GetBase(const Range &coverage) const {
return *m_cells[coverage.GetStartPos()][coverage.GetEndPos() - coverage.GetStartPos()];
}
- ChartCellBase &MutableBase(const WordsRange &coverage) {
+ ChartCellBase &MutableBase(const Range &coverage) {
return *m_cells[coverage.GetStartPos()][coverage.GetEndPos() - coverage.GetStartPos()];
}
@@ -88,12 +88,12 @@ public:
ChartCellCollection(const InputType &input, ChartManager &manager);
//! get a chart cell for a particular range
- ChartCell &Get(const WordsRange &coverage) {
+ ChartCell &Get(const Range &coverage) {
return static_cast<ChartCell&>(MutableBase(coverage));
}
//! get a chart cell for a particular range
- const ChartCell &Get(const WordsRange &coverage) const {
+ const ChartCell &Get(const Range &coverage) const {
return static_cast<const ChartCell&>(GetBase(coverage));
}
};