Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ReorderingStack.h « src « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9a710b34828cf694adf24198718bc409b24de1a5 (plain)
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
/*
 * ReorderingStack.h
 ** Author: Ankit K. Srivastava
 ** Date: Jan 26, 2010
 */

#pragma once

//#include <string>
#include <vector>
//#include "Factor.h"
//#include "Phrase.h"
//#include "TypeDef.h"
//#include "Util.h"
#include "WordsRange.h"
//#include "ScoreProducer.h"
//#include "FeatureFunction.h"

namespace Moses
{

class ReorderingStack
{
private:

  std::vector<WordsRange> m_stack;

public:

  int Compare(const ReorderingStack& o) const;
  int ShiftReduce(WordsRange input_span);

private:
  void Reduce(WordsRange input_span);
};


}