mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
37 lines
713 B
C++
37 lines
713 B
C++
/*
|
|
* SearchNormal.h
|
|
*
|
|
* Created on: 25 Oct 2015
|
|
* Author: hieu
|
|
*/
|
|
|
|
#ifndef SEARCHNORMAL_H_
|
|
#define SEARCHNORMAL_H_
|
|
#include <vector>
|
|
|
|
class Manager;
|
|
class Stack;
|
|
class Hypothesis;
|
|
class InputPath;
|
|
class TargetPhrases;
|
|
class TargetPhrase;
|
|
|
|
class SearchNormal {
|
|
public:
|
|
SearchNormal(Manager &mgr, std::vector<Stack> &stacks);
|
|
virtual ~SearchNormal();
|
|
|
|
void Decode(size_t stackInd);
|
|
|
|
protected:
|
|
Manager &m_mgr;
|
|
std::vector<Stack> &m_stacks;
|
|
|
|
void Extend(const Hypothesis &hypo);
|
|
void Extend(const Hypothesis &hypo, const InputPath &path);
|
|
void Extend(const Hypothesis &hypo, const TargetPhrases &tps);
|
|
void Extend(const Hypothesis &hypo, const TargetPhrase &tp);
|
|
};
|
|
|
|
#endif /* SEARCHNORMAL_H_ */
|