Public Member Functions | Protected Member Functions | Protected Attributes

CMorphAutomat Class Reference

#include <MorphAutomat.h>

Inheritance diagram for CMorphAutomat:
Inheritance graph
[legend]
Collaboration diagram for CMorphAutomat:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Protected Member Functions

Protected Attributes


Constructor & Destructor Documentation

CMorphAutomat::CMorphAutomat ( MorphLanguageEnum  Language,
BYTE  AnnotChar 
)
CMorphAutomat::~CMorphAutomat (  ) 

References Clear().

Here is the call graph for this function:


Member Function Documentation

void CMorphAutomat::DumpAllStringsRecursive ( FILE *  fp,
int  NodeNo,
string  CurrPath 
) const [protected]

References CMorphAutomRelation::GetChildNo(), GetChildren(), GetChildrenCount(), CMorphAutomRelation::GetRelationalChar(), and m_pNodes.

Referenced by DumpAllStrings().

Here is the call graph for this function:

Here is the caller graph for this function:

void CMorphAutomat::BuildChildrenCache (  )  [protected]
void CMorphAutomat::GetAllMorphInterpsRecursive ( int  NodeNo,
string &  curr_path,
vector< CAutomAnnotationInner > &  Infos 
) const [protected]
int CMorphAutomat::FindStringAndPassAnnotChar ( const string &  Text,
size_t  TextPos 
) const [protected]

References CABCEncoder::m_AnnotChar, and NextNode().

Referenced by GetFirstResult(), and GetInnerMorphInfos().

Here is the call graph for this function:

Here is the caller graph for this function:

void CMorphAutomat::Clear (  )  [protected]

References m_NodesCount, m_pNodes, m_pRelations, and m_RelationsCount.

Referenced by CMorphAutomatBuilder::ConvertBuildRelationsToRelations(), Load(), and ~CMorphAutomat().

Here is the caller graph for this function:

bool CMorphAutomat::Load ( string  GrammarFileName  ) 

References BuildChildrenCache(), Clear(), ErrorMessage(), Format(), GetStringByLanguage(), CABCEncoder::m_Alphabet2Code, CABCEncoder::m_Language, m_NodesCount, m_pNodes, m_pRelations, and m_RelationsCount.

Referenced by CPredictBase::Load(), and CMorphDict::Load().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CMorphAutomat::Save ( string  GrammarFileName  )  const

References ErrorMessage(), Format(), CABCEncoder::m_Alphabet2Code, m_NodesCount, m_pNodes, m_pRelations, and m_RelationsCount.

Referenced by CMorphDict::Save().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CMorphAutomat::DumpAllStrings ( string  FileName  )  const

References DumpAllStringsRecursive(), and m_NodesCount.

Here is the call graph for this function:

void CMorphAutomat::GetInnerMorphInfos ( const string &  Text,
size_t  TextPos,
vector< CAutomAnnotationInner > &  Infos 
) const

References FindStringAndPassAnnotChar(), and GetAllMorphInterpsRecursive().

Referenced by CLemmatizer::LemmatizeWord(), and CMorphDict::PredictBySuffix().

Here is the call graph for this function:

Here is the caller graph for this function:

const CMorphAutomRelation * CMorphAutomat::GetChildren ( size_t  NodeNo  )  const

References CMorphAutomNode::GetChildrenStart(), m_pNodes, and m_pRelations.

Referenced by DumpAllStringsRecursive(), CPredictBase::FindRecursive(), GetAllMorphInterpsRecursive(), and GetFirstResult().

Here is the call graph for this function:

Here is the caller graph for this function:

int CMorphAutomat::NextNode ( int  NodeNo,
BYTE  Child 
) const
size_t CMorphAutomat::GetChildrenCount ( size_t  NodeNo  )  const

References CMorphAutomNode::GetChildrenStart(), m_NodesCount, m_pNodes, and m_RelationsCount.

Referenced by BuildChildrenCache(), DumpAllStringsRecursive(), CPredictBase::FindRecursive(), GetAllMorphInterpsRecursive(), and NextNode().

Here is the call graph for this function:

Here is the caller graph for this function:

const CMorphAutomNode& CMorphAutomat::GetNode ( int  NodeNo  )  const [inline]

References m_pNodes.

Referenced by CPredictBase::FindRecursive().

Here is the caller graph for this function:

DWORD CMorphAutomat::EncodeMorphAutomatInfo ( size_t  ModelNo,
size_t  ItemNo,
size_t  PrefixNo 
) const

Referenced by CMorphDictBuilder::CreateAutomat().

Here is the caller graph for this function:

void CMorphAutomat::DecodeMorphAutomatInfo ( DWORD  Info,
size_t &  ModelNo,
size_t &  ItemNo,
size_t &  PrefixNo 
) const

Referenced by CMorphDictBuilder::CreateAutomat(), and GetAllMorphInterpsRecursive().

Here is the caller graph for this function:

string CMorphAutomat::GetFirstResult ( const string &  Text  )  const

Member Data Documentation

size_t CMorphAutomat::m_NodesCount [protected]
size_t CMorphAutomat::m_RelationsCount [protected]
vector<int> CMorphAutomat::m_ChildrenCache [protected]

Referenced by BuildChildrenCache(), and NextNode().


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