mosesdecoder/contrib/other-builds/moses2/InputPath.h
2015-11-06 19:06:41 +00:00

37 lines
764 B
C++

/*
* InputPath.h
*
* Created on: 23 Oct 2015
* Author: hieu
*/
#ifndef INPUTPATH_H_
#define INPUTPATH_H_
#include <iostream>
#include <vector>
#include "Phrase.h"
#include "TargetPhrases.h"
#include "moses/Range.h"
;
class PhraseTable;
class InputPath {
friend std::ostream& operator<<(std::ostream &, const InputPath &);
public:
const InputPath *prefixPath;
SubPhrase subPhrase;
Moses::Range range;
std::vector<TargetPhrases::shared_const_ptr> targetPhrases;
InputPath(const SubPhrase &subPhrase, const Moses::Range &range, size_t numPt, const InputPath *prefixPath);
virtual ~InputPath();
void AddTargetPhrases(const PhraseTable &pt, TargetPhrases::shared_const_ptr tps);
bool IsUsed() const;
protected:
};
#endif /* INPUTPATH_H_ */