mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
39 lines
737 B
C++
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);
|
|
};
|
|
|
|
}
|
|
|