File size: 886 Bytes
158b61b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * HReorderingBackwardState.h
 *
 *  Created on: 22 Mar 2016
 *      Author: hieu
 */
#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;

};

} /* namespace Moses2 */