mosesdecoder/moses/Syntax/SVertex.h
Phil Williams 5240c430ce Merge s2t branch
This adds a new string-to-tree decoder, which can be enabled with the -s2t
option.  It's intended to be faster and simpler than the generic chart
decoder, and is designed to support lattice input (still WIP).  For a en-de
system trained on WMT14 data, it's approximately 40% faster in practice.

For background information, see the decoding section of the EMNLP tutorial
on syntax-based MT:

  http://www.emnlp2014.org/tutorials/5_notes.pdf

Some features are not implemented yet, including support for internal tree
structure and soft source-syntactic constraints.
2014-11-04 13:13:56 +00:00

32 lines
467 B
C++

#pragma once
#include <vector>
namespace Moses
{
class FFState;
namespace Syntax
{
struct PVertex;
struct SHyperedge;
// A vertex in the search hypergraph.
//
// Important: a SVertex owns its incoming SHyperedge objects and its FFState
// objects and will delete them on destruction.
struct SVertex
{
~SVertex();
SHyperedge *best;
std::vector<SHyperedge*> recombined;
const PVertex *pvertex;
std::vector<FFState*> state;
};
} // Syntax
} // Moses