2013-05-24 21:34:47 +04:00
|
|
|
#include "ChartBasedFeatureContext.h"
|
2013-05-25 02:18:38 +04:00
|
|
|
#include "moses/ChartHypothesis.h"
|
|
|
|
#include "moses/ChartManager.h"
|
|
|
|
|
|
|
|
namespace Moses
|
|
|
|
{
|
|
|
|
ChartBasedFeatureContext::ChartBasedFeatureContext
|
2013-05-29 21:16:15 +04:00
|
|
|
(const ChartHypothesis* hypothesis):
|
2013-05-25 02:18:38 +04:00
|
|
|
m_hypothesis(hypothesis),
|
|
|
|
m_targetPhrase(hypothesis->GetCurrTargetPhrase()),
|
|
|
|
m_source(hypothesis->GetManager().GetSource())
|
|
|
|
{}
|
|
|
|
|
|
|
|
ChartBasedFeatureContext::ChartBasedFeatureContext(
|
2013-05-29 21:16:15 +04:00
|
|
|
const TargetPhrase& targetPhrase,
|
|
|
|
const InputType& source):
|
2013-05-25 02:18:38 +04:00
|
|
|
m_hypothesis(NULL),
|
|
|
|
m_targetPhrase(targetPhrase),
|
|
|
|
m_source(source)
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2013-05-24 21:34:47 +04:00
|
|
|
|