|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once |
|
#include "LRState.h" |
|
#include "ReorderingStack.h" |
|
|
|
namespace Moses2 |
|
{ |
|
|
|
class HReorderingBackwardState: public LRState |
|
{ |
|
private: |
|
ReorderingStack reoStack; |
|
|
|
public: |
|
HReorderingBackwardState(MemPool &pool, const LRModel &config, size_t offset); |
|
|
|
virtual void Init(const LRState *prev, const TargetPhrase<Moses2::Word> &topt, |
|
const InputPathBase &path, bool first, const Bitmap *coverage); |
|
|
|
virtual ~HReorderingBackwardState(); |
|
|
|
size_t hash() const; |
|
virtual bool operator==(const FFState& other) const; |
|
virtual std::string ToString() const; |
|
void Expand(const ManagerBase &mgr, const LexicalReordering &ff, |
|
const Hypothesis &hypo, size_t phraseTableInd, Scores &scores, |
|
FFState &state) const; |
|
|
|
}; |
|
|
|
} |
|
|
|
|