add tps to input path

This commit is contained in:
Hieu Hoang 2015-10-26 16:14:17 +00:00
parent b491873fd1
commit add010b029
2 changed files with 7 additions and 0 deletions

View File

@ -19,3 +19,8 @@ InputPath::~InputPath() {
// TODO Auto-generated destructor stub
}
void InputPath::AddTargetPhrases(const PhraseTable &pt, const TargetPhrases *pts)
{
size_t ptInd = pt.GetPtInd();
m_targetPhrases[ptInd] = tps;
}

View File

@ -27,6 +27,8 @@ public:
const std::vector<const TargetPhrases*> &GetTargetPhrases() const
{ return m_targetPhrases; }
void AddTargetPhrases(const PhraseTable &pt, const TargetPhrases *pts);
protected:
SubPhrase m_subPhrase;
Moses::Range m_range;