https://github.com/wilkeraziz/mosesdecoder
Raw File
Tip revision: c55161dff40ef01fea15d6c0a8ed30b8ce1c7d46 authored by jiejiang on 16 January 2014, 01:08:01 UTC
merge c11 revert with mingw changes
Tip revision: c55161d
ReorderingStack.h
/*
 * 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"

namespace Moses
{

/** @todo what is this?
 */
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);
};


}
back to top