#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< SplitPoints > | ParentNodes |
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 LINE_MAX_LENGTH 1000000 |
Definition at line 34 of file relax-parse.h.
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.
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().
void init | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 118 of file mtt-build.cc.
References interpret_args(), is_conll, leftBinarizeFlag, open_vocab(), rightBinarizeFlag, SAMTLevel, and vocabBase.
Referenced by sapt::BitSetCache< TSA >::BitSetCache(), BOOST_AUTO_TEST_CASE(), sapt::DocumentBias::init_from_json(), Moses::InputFileStream::InputFileStream(), inputfilestream::inputfilestream(), Moses::SoftSourceSyntacticConstraintsFeature::LoadTargetSourceLeftHandSideJointCountFile(), main(), Moses::InputFileStream::Open(), sapt::PScoreProvenance< Token >::PScoreProvenance(), sapt::PScoreRareness< Token >::PScoreRareness(), and MosesTuning::Viterbi().
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().
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().
void SAMT | ( | MosesTraining::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 | ( | MosesTraining::SyntaxNodeCollection & | tree, | |
const std::vector< std::string > & | words | |||
) |
bool leftBinarizeFlag = false |
bool rightBinarizeFlag = false |
char SAMTLevel = 0 |