/disk4/html/www/moses/doxygen/mosesdecoder/phrase-extract/relax-parse.h File Reference

#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <cstring>
#include "SyntaxNodeCollection.h"
#include "XmlTree.h"

Go to the source code of this file.

Defines

#define LINE_MAX_LENGTH   1000000

Typedefs

typedef std::vector< int > SplitPoints
typedef std::vector< SplitPointsParentNodes

Functions

void init (int argc, char *argv[])
ParentNodes determineSplitPoints (const MosesTraining::SyntaxNodeCollection &)
void store (MosesTraining::SyntaxNodeCollection &tree, const std::vector< std::string > &words)
void LeftBinarize (MosesTraining::SyntaxNodeCollection &tree, ParentNodes &parents)
void RightBinarize (MosesTraining::SyntaxNodeCollection &tree, ParentNodes &parents)
void SAMT (MosesTraining::SyntaxNodeCollection &tree, ParentNodes &parents)

Variables

bool leftBinarizeFlag = false
bool rightBinarizeFlag = false
char SAMTLevel = 0


Define Documentation

#define LINE_MAX_LENGTH   1000000

Definition at line 34 of file relax-parse.h.


Typedef Documentation

typedef std::vector< SplitPoints > ParentNodes

Definition at line 41 of file relax-parse.h.

typedef std::vector< int > SplitPoints

Definition at line 40 of file relax-parse.h.


Function Documentation

ParentNodes determineSplitPoints ( const MosesTraining::SyntaxNodeCollection  ) 

Definition at line 280 of file relax-parse-main.cpp.

References MosesTraining::SyntaxNodeCollection::GetNumWords(), and MosesTraining::SyntaxNodeCollection::HasNode().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void init ( int  argc,
char *  argv[] 
)

void LeftBinarize ( MosesTraining::SyntaxNodeCollection tree,
ParentNodes parents 
)

Definition at line 134 of file relax-parse-main.cpp.

References MosesTraining::SyntaxNodeCollection::AddNode(), and MosesTraining::SyntaxNodeCollection::GetNodes().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void RightBinarize ( MosesTraining::SyntaxNodeCollection tree,
ParentNodes parents 
)

Definition at line 151 of file relax-parse-main.cpp.

References MosesTraining::SyntaxNodeCollection::AddNode(), and MosesTraining::SyntaxNodeCollection::GetNodes().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void SAMT ( MosesTraining::SyntaxNodeCollection tree,
ParentNodes parents 
)

void store ( MosesTraining::SyntaxNodeCollection tree,
const std::vector< std::string > &  words 
)


Variable Documentation

bool leftBinarizeFlag = false

Definition at line 36 of file relax-parse.h.

Referenced by init(), and main().

bool rightBinarizeFlag = false

Definition at line 37 of file relax-parse.h.

Referenced by init(), and main().

char SAMTLevel = 0

Definition at line 38 of file relax-parse.h.

Referenced by init(), main(), and SAMT().


Generated on Thu Jul 6 00:31:40 2017 for Moses by  doxygen 1.5.9