mosesdecoder/contrib/other-builds/moses2/InputPath.h

37 lines
764 B
C
Raw Normal View History

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-26 19:32:47 +03:00
#include <iostream>
2015-10-24 15:31:43 +03:00
#include <vector>
2015-10-24 01:19:31 +03:00
#include "Phrase.h"
#include "TargetPhrases.h"
2015-10-25 18:58:26 +03:00
#include "moses/Range.h"
;
2015-10-26 19:32:47 +03:00
class PhraseTable;
2015-10-24 15:31:43 +03:00
2015-10-24 01:19:31 +03:00
class InputPath {
2015-10-26 19:32:47 +03:00
friend std::ostream& operator<<(std::ostream &, const InputPath &);
2015-10-24 01:19:31 +03:00
public:
2015-11-06 22:06:41 +03:00
const InputPath *prefixPath;
SubPhrase subPhrase;
Moses::Range range;
std::vector<TargetPhrases::shared_const_ptr> targetPhrases;
2015-10-25 19:35:20 +03:00
2015-11-06 22:06:41 +03:00
InputPath(const SubPhrase &subPhrase, const Moses::Range &range, size_t numPt, const InputPath *prefixPath);
virtual ~InputPath();
2015-10-25 19:35:20 +03:00
void AddTargetPhrases(const PhraseTable &pt, TargetPhrases::shared_const_ptr tps);
2015-10-26 19:14:17 +03:00
bool IsUsed() const;
2015-11-06 22:06:41 +03:00
2015-10-24 01:19:31 +03:00
protected:
};
#endif /* INPUTPATH_H_ */