mosesdecoder/moses/ChartTranslationOption.h

39 lines
737 B
C++

#pragma once
#include "ScoreComponentCollection.h"
namespace Moses
{
class TargetPhrase;
class InputPath;
class InputType;
class ChartTranslationOption
{
protected:
const TargetPhrase &m_targetPhrase;
ScoreComponentCollection m_scoreBreakdown;
const InputPath *m_inputPath;
public:
ChartTranslationOption(const TargetPhrase &targetPhrase);
const TargetPhrase &GetPhrase() const {
return m_targetPhrase;
}
void SetInputPath(const InputPath *inputPath)
{ m_inputPath = inputPath; }
const InputPath *GetInputPath() const
{ return m_inputPath; }
const ScoreComponentCollection &GetScores() const {
return m_scoreBreakdown;
}
void Evaluate(const InputType &input, const InputPath &inputPath);
};
}