#include "relax-parse.h"
#include "tables-core.h"
#include "util/tokenize.hh"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
void | init (int argc, char *argv[]) |
void | store (SyntaxNodeCollection &tree, const vector< string > &words) |
void | LeftBinarize (SyntaxNodeCollection &tree, ParentNodes &parents) |
void | RightBinarize (SyntaxNodeCollection &tree, ParentNodes &parents) |
void | SAMT (SyntaxNodeCollection &tree, ParentNodes &parents) |
ParentNodes | determineSplitPoints (const SyntaxNodeCollection &nodeColl) |
ParentNodes determineSplitPoints | ( | const SyntaxNodeCollection & | nodeColl | ) |
Definition at line 280 of file relax-parse-main.cpp.
References MosesTraining::SyntaxNodeCollection::GetNumWords(), and MosesTraining::SyntaxNodeCollection::HasNode().
Referenced by main().
void init | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 74 of file relax-parse-main.cpp.
References interpret_args(), is_conll, leftBinarizeFlag, open_vocab(), rightBinarizeFlag, SAMTLevel, and vocabBase.
void LeftBinarize | ( | 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().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 29 of file relax-parse-main.cpp.
References determineSplitPoints(), EOF, init(), LeftBinarize(), leftBinarizeFlag, Moses::ProcessAndStripXMLTags(), RightBinarize(), rightBinarizeFlag, SAMT(), SAMTLevel, store(), and util::tokenize().
void RightBinarize | ( | 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().
void SAMT | ( | SyntaxNodeCollection & | tree, | |
ParentNodes & | parents | |||
) |
Definition at line 169 of file relax-parse-main.cpp.
References MosesTraining::SyntaxNodeCollection::AddNode(), end, MosesTraining::SyntaxNodeCollection::GetAllNodes(), MosesTraining::SyntaxNodeCollection::GetNodes(), MosesTraining::SyntaxNodeCollection::GetNumWords(), MosesTraining::SyntaxNodeCollection::HasNode(), and SAMTLevel.
Referenced by main().
void store | ( | SyntaxNodeCollection & | tree, | |
const vector< string > & | words | |||
) |
Definition at line 108 of file relax-parse-main.cpp.
References MosesTraining::SyntaxNodeCollection::GetAllNodes().
Referenced by ugdiss::get_options(), interpret_args(), and main().