00001 #include "ChartBasedFeatureContext.h" 00002 #include "moses/ChartHypothesis.h" 00003 #include "moses/ChartManager.h" 00004 00005 namespace Moses 00006 { 00007 ChartBasedFeatureContext::ChartBasedFeatureContext 00008 (const ChartHypothesis* hypothesis): 00009 m_hypothesis(hypothesis), 00010 m_targetPhrase(hypothesis->GetCurrTargetPhrase()), 00011 m_source(hypothesis->GetManager().GetSource()) 00012 {} 00013 00014 ChartBasedFeatureContext::ChartBasedFeatureContext( 00015 const TargetPhrase& targetPhrase, 00016 const InputType& source): 00017 m_hypothesis(NULL), 00018 m_targetPhrase(targetPhrase), 00019 m_source(source) 00020 {} 00021 00022 00023 } 00024