MosesTraining::Syntax::FilterRuleTable::TsgFilter Class Reference

#include <TsgFilter.h>

Inheritance diagram for MosesTraining::Syntax::FilterRuleTable::TsgFilter:

Inheritance graph
Collaboration diagram for MosesTraining::Syntax::FilterRuleTable::TsgFilter:

Collaboration graph

List of all members.

Public Member Functions

virtual ~TsgFilter ()
void Filter (std::istream &in, std::ostream &out)

Protected Types

typedef NumberedSet
< std::string, std::size_t > 
typedef Tree< Vocabulary::IdTypeIdTree

Protected Member Functions

IdTreeBuildTree (const std::vector< TreeFragmentToken > &tokens, int &i, std::vector< IdTree * > &leaves)
virtual bool MatchFragment (const IdTree &, const std::vector< IdTree * > &)=0

Protected Attributes

Vocabulary m_testVocab

Detailed Description

Definition at line 21 of file TsgFilter.h.

Member Typedef Documentation

Definition at line 34 of file TsgFilter.h.

typedef NumberedSet<std::string, std::size_t> MosesTraining::Syntax::FilterRuleTable::TsgFilter::Vocabulary [protected]

Definition at line 31 of file TsgFilter.h.

Constructor & Destructor Documentation

virtual MosesTraining::Syntax::FilterRuleTable::TsgFilter::~TsgFilter (  )  [inline, virtual]

Definition at line 24 of file TsgFilter.h.

Member Function Documentation

TsgFilter::IdTree * MosesTraining::Syntax::FilterRuleTable::TsgFilter::BuildTree ( const std::vector< TreeFragmentToken > &  tokens,
int &  i,
std::vector< IdTree * > &  leaves 
) [protected]

void MosesTraining::Syntax::FilterRuleTable::TsgFilter::Filter ( std::istream &  in,
std::ostream &  out 

Definition at line 50 of file TsgFilter.cpp.

References BuildTree(), and MatchFragment().

Referenced by MosesTraining::Syntax::FilterRuleTable::FilterRuleTable::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool MosesTraining::Syntax::FilterRuleTable::TsgFilter::MatchFragment ( const IdTree ,
const std::vector< IdTree * > &   
) [protected, pure virtual]

Referenced by Filter().

Here is the caller graph for this function:

Member Data Documentation

The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:34:10 2017 for Moses by  doxygen 1.5.9