2015-10-24 01:19:31 +03:00
|
|
|
/*
|
|
|
|
* InputPath.h
|
|
|
|
*
|
|
|
|
* Created on: 23 Oct 2015
|
|
|
|
* Author: hieu
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INPUTPATH_H_
|
|
|
|
#define INPUTPATH_H_
|
2015-10-24 15:31:43 +03:00
|
|
|
#include <vector>
|
2015-10-24 01:19:31 +03:00
|
|
|
#include "Phrase.h"
|
2015-10-25 18:58:26 +03:00
|
|
|
#include "moses/Range.h"
|
2015-10-24 01:19:31 +03:00
|
|
|
|
2015-10-24 15:31:43 +03:00
|
|
|
class TargetPhrases;
|
|
|
|
|
2015-10-24 01:19:31 +03:00
|
|
|
class InputPath {
|
|
|
|
public:
|
2015-10-25 18:58:26 +03:00
|
|
|
InputPath(const SubPhrase &subPhrase, const Moses::Range &range, size_t numPt);
|
2015-10-24 01:19:31 +03:00
|
|
|
virtual ~InputPath();
|
|
|
|
|
2015-10-24 15:14:35 +03:00
|
|
|
const SubPhrase &GetSubPhrase() const
|
|
|
|
{ return m_subPhrase; }
|
|
|
|
|
2015-10-25 18:58:26 +03:00
|
|
|
const Moses::Range &GetRange() const
|
2015-10-25 15:49:25 +03:00
|
|
|
{ return m_range; }
|
2015-10-25 19:35:20 +03:00
|
|
|
|
|
|
|
const std::vector<const TargetPhrases*> &GetTargetPhrases() const
|
|
|
|
{ return m_targetPhrases; }
|
|
|
|
|
2015-10-26 19:14:17 +03:00
|
|
|
void AddTargetPhrases(const PhraseTable &pt, const TargetPhrases *pts);
|
|
|
|
|
2015-10-24 01:19:31 +03:00
|
|
|
protected:
|
|
|
|
SubPhrase m_subPhrase;
|
2015-10-25 18:58:26 +03:00
|
|
|
Moses::Range m_range;
|
2015-10-24 15:31:43 +03:00
|
|
|
std::vector<const TargetPhrases*> m_targetPhrases;
|
2015-10-24 01:19:31 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* INPUTPATH_H_ */
|