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 <hieu@hoang.co.uk>2013-08-09 18:20:45 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-09 18:20:45 +0400
commit4db9aa2973bee8e8785ba0bb9517bbb1d66ac297 (patch)
tree368f6d77f37b6ced5012c7d22cdf86ba5b6fe3c0 /moses/RuleCubeItem.cpp
parentf4d534ffd7a4a0f2e5fa6c1a2455aa383fcb367e (diff)
convert to using shared pointers in ChartTranslationOptions
Diffstat (limited to 'moses/RuleCubeItem.cpp')
-rw-r--r--moses/RuleCubeItem.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/moses/RuleCubeItem.cpp b/moses/RuleCubeItem.cpp
index 5b3b0c246..92539b39f 100644
--- a/moses/RuleCubeItem.cpp
+++ b/moses/RuleCubeItem.cpp
@@ -38,8 +38,7 @@ std::size_t hash_value(const HypothesisDimension &dimension)
RuleCubeItem::RuleCubeItem(const ChartTranslationOptions &transOpt,
const ChartCellCollection &/*allChartCells*/)
- : m_translationDimension(0,
- transOpt.GetTargetPhraseCollection().GetCollection())
+ : m_translationDimension(0, transOpt.GetTargetPhrases())
, m_hypothesis(0)
{
CreateHypothesisDimensions(transOpt.GetStackVec());