mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
Base class switcheroo
This commit is contained in:
parent
542502e6fd
commit
0d86844a33
@ -40,7 +40,7 @@ class ChartRuleLookupManager
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ChartRuleLookupManager(const InputType &sentence,
|
ChartRuleLookupManager(const InputType &sentence,
|
||||||
const ChartCellCollection &cellColl)
|
const ChartCellCollectionBase &cellColl)
|
||||||
: m_sentence(sentence)
|
: m_sentence(sentence)
|
||||||
, m_cellCollection(cellColl) {}
|
, m_cellCollection(cellColl) {}
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
const ChartCellLabelSet &GetTargetLabelSet(size_t begin, size_t end) const {
|
const ChartCellLabelSet &GetTargetLabelSet(size_t begin, size_t end) const {
|
||||||
return m_cellCollection.Get(WordsRange(begin, end)).GetTargetLabelSet();
|
return m_cellCollection.GetBase(WordsRange(begin, end)).GetTargetLabelSet();
|
||||||
}
|
}
|
||||||
|
|
||||||
const ChartCellLabel &GetSourceAt(size_t at) const {
|
const ChartCellLabel &GetSourceAt(size_t at) const {
|
||||||
@ -74,7 +74,7 @@ private:
|
|||||||
ChartRuleLookupManager &operator=(const ChartRuleLookupManager &);
|
ChartRuleLookupManager &operator=(const ChartRuleLookupManager &);
|
||||||
|
|
||||||
const InputType &m_sentence;
|
const InputType &m_sentence;
|
||||||
const ChartCellCollection &m_cellCollection;
|
const ChartCellCollectionBase &m_cellCollection;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Moses
|
} // namespace Moses
|
||||||
|
Loading…
Reference in New Issue
Block a user