mosesdecoder/moses/FF/LexicalReordering/ReorderingStack.h
2014-05-26 13:47:32 +01:00

39 lines
524 B
C++

/*
* 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 "moses/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);
};
}