MosesTraining::GHKM Namespace Reference


Classes

class  AlignmentGraph
class  ComposedRule
class  Exception
class  ExtractGHKM
class  Node
struct  Options
class  PhraseOrientation
class  Symbol
class  Rule
class  ScfgRule
class  ScfgRuleWriter
class  StsgRule
class  StsgRuleWriter
class  Subgraph

Typedefs

typedef std::vector< std::pair
< int, int > > 
Alignment
typedef std::map< int,
std::set< int > > 
HSentenceVertices
typedef std::set< int > Span
typedef std::pair< int, int > ContiguousSpan

Enumerations

enum  NodeType { SOURCE, TARGET, TREE }
enum  SymbolType { Terminal, NonTerminal }

Functions

void ReadAlignment (const std::string &s, Alignment &a)
void FlipAlignment (Alignment &a)
bool SpansIntersect (const Span &a, const ContiguousSpan &b)
ContiguousSpan Closure (const Span &s)

Typedef Documentation

typedef std::vector<std::pair<int, int> > MosesTraining::GHKM::Alignment

Definition at line 31 of file Alignment.h.

typedef std::pair<int, int> MosesTraining::GHKM::ContiguousSpan

Definition at line 33 of file Span.h.

typedef std::map<int, std::set<int> > MosesTraining::GHKM::HSentenceVertices

Definition at line 39 of file PhraseOrientation.h.

typedef std::set<int> MosesTraining::GHKM::Span

Definition at line 32 of file Span.h.


Enumeration Type Documentation

Enumerator:
SOURCE 
TARGET 
TREE 

Definition at line 38 of file Node.h.

Enumerator:
Terminal 
NonTerminal 

Definition at line 17 of file Rule.h.


Function Documentation

ContiguousSpan MosesTraining::GHKM::Closure ( const Span &  s  ) 

Definition at line 37 of file Span.cpp.

void MosesTraining::GHKM::FlipAlignment ( Alignment a  ) 

Definition at line 65 of file Alignment.cpp.

References swap().

Referenced by MosesTraining::GHKM::ExtractGHKM::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTraining::GHKM::ReadAlignment ( const std::string &  s,
Alignment a 
)

Definition at line 33 of file Alignment.cpp.

References begin, end, and src.

Referenced by MosesTraining::GHKM::ExtractGHKM::Main().

Here is the caller graph for this function:

bool MosesTraining::GHKM::SpansIntersect ( const Span &  a,
const ContiguousSpan &  b 
)

Definition at line 27 of file Span.cpp.


Generated on Mon Jul 6 00:34:23 2015 for Moses by  doxygen 1.5.9