File size: 785 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
#pragma once

#include "LRState.h"
#include "moses/Range.h"
#include "moses/Bitmap.h"

namespace Moses
{

//!forward state (conditioned on the next phrase)
class HReorderingForwardState : public LRState
{
private:
  bool m_first;
  Range m_prevRange;
  Bitmap m_coverage;

public:
  HReorderingForwardState(const LRModel &config, size_t sentenceLength,
                          size_t offset);
  HReorderingForwardState(const HReorderingForwardState *prev,
                          const TranslationOption &topt);

  virtual size_t hash() const;
  virtual bool operator==(const FFState& other) const;

  virtual LRState* Expand(const TranslationOption& hypo,
                          const InputType& input,
                          ScoreComponentCollection* scores) const;
};

}