diff options
Diffstat (limited to 'moses2/FF/LexicalReordering/PhraseBasedReorderingState.h')
-rw-r--r-- | moses2/FF/LexicalReordering/PhraseBasedReorderingState.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/moses2/FF/LexicalReordering/PhraseBasedReorderingState.h b/moses2/FF/LexicalReordering/PhraseBasedReorderingState.h new file mode 100644 index 000000000..77994e477 --- /dev/null +++ b/moses2/FF/LexicalReordering/PhraseBasedReorderingState.h @@ -0,0 +1,44 @@ +/* + * PhraseLR.h + * + * Created on: 22 Mar 2016 + * Author: hieu + */ + +#pragma once +#include "LRState.h" + +namespace Moses2 +{ + +class InputPathBase; + +class PhraseBasedReorderingState: public LRState +{ +public: + const InputPathBase *prevPath; + bool m_first; + + PhraseBasedReorderingState(const LRModel &config, LRModel::Direction dir, + size_t offset); + + void Init(const LRState *prev, const TargetPhrase<Moses2::Word> &topt, + const InputPathBase &path, bool first, const Bitmap *coverage); + + size_t hash() const; + virtual bool operator==(const FFState& other) const; + + virtual std::string ToString() const { + return "PhraseBasedReorderingState"; + } + + void Expand(const ManagerBase &mgr, const LexicalReordering &ff, + const Hypothesis &hypo, size_t phraseTableInd, Scores &scores, + FFState &state) const; + +protected: + +}; + +} /* namespace Moses2 */ + |