ddc
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
CMorphDict Class Reference

#include <MorphDict.h>

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

Classes

struct  IsLessMorphInterp
 

Public Member Functions

 CMorphDict (MorphLanguageEnum Language)
 
virtual ~CMorphDict ()
 
void InitAutomat (CMorphAutomat *pFormAutomat)
 
bool Load (string GrammarFileName)
 
bool Save (string GrammarFileName) const
 
void PredictBySuffix (const string &Text, size_t &TextOffset, size_t MinimalPredictSuffixlen, vector< CAutomAnnotationInner > &Infos) const
 
string GetAllMorphInterpsStr (const string &Text, const size_t TextPos, bool bFullInterp) const
 

Public Attributes

vector< CFlexiaModelm_FlexiaModels
 
vector< CAccentModelm_AccentModels
 
CShortStringHolder m_Bases
 
vector< CLemmaInfoAndLemmam_LemmaInfos
 
StringVector m_Prefixes
 
vector< BYTEm_NPSs
 

Protected Member Functions

void GetLemmaInfos (const string &Text, size_t TextPos, vector< CAutomAnnotationInner > &Infos) const
 
void CreateModelsIndex ()
 

Protected Attributes

CMorphAutomatm_pFormAutomat
 
vector< int > m_ModelsIndex
 
IsLessMorphInterp m_SearchInfoLess
 

Constructor & Destructor Documentation

◆ CMorphDict()

CMorphDict::CMorphDict ( MorphLanguageEnum  Language)

References m_pFormAutomat.

◆ ~CMorphDict()

CMorphDict::~CMorphDict ( )
virtual

References m_pFormAutomat.

Member Function Documentation

◆ GetLemmaInfos()

void CMorphDict::GetLemmaInfos ( const string &  Text,
size_t  TextPos,
vector< CAutomAnnotationInner > &  Infos 
) const
protected

◆ CreateModelsIndex()

void CMorphDict::CreateModelsIndex ( )
protected

References m_FlexiaModels, m_LemmaInfos, and m_ModelsIndex.

Referenced by Load().

Here is the caller graph for this function:

◆ InitAutomat()

void CMorphDict::InitAutomat ( CMorphAutomat pFormAutomat)

References m_pFormAutomat.

Referenced by CLemmatizer::CLemmatizer(), and CMorphDictBuilder::CMorphDictBuilder().

Here is the caller graph for this function:

◆ Load()

bool CMorphDict::Load ( string  GrammarFileName)

◆ Save()

bool CMorphDict::Save ( string  GrammarFileName) const

◆ PredictBySuffix()

void CMorphDict::PredictBySuffix ( const string &  Text,
size_t &  TextOffset,
size_t  MinimalPredictSuffixlen,
vector< CAutomAnnotationInner > &  Infos 
) const

References CMorphAutomat::GetInnerMorphInfos(), and m_pFormAutomat.

Referenced by CLemmatizer::LemmatizeWord().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAllMorphInterpsStr()

string CMorphDict::GetAllMorphInterpsStr ( const string &  Text,
const size_t  TextPos,
bool  bFullInterp 
) const

Member Data Documentation

◆ m_pFormAutomat

CMorphAutomat* CMorphDict::m_pFormAutomat
protected

◆ m_ModelsIndex

vector<int> CMorphDict::m_ModelsIndex
protected

Referenced by CreateModelsIndex(), and GetLemmaInfos().

◆ m_SearchInfoLess

IsLessMorphInterp CMorphDict::m_SearchInfoLess
protected

Referenced by GetLemmaInfos().

◆ m_FlexiaModels

vector<CFlexiaModel> CMorphDict::m_FlexiaModels

◆ m_AccentModels

vector<CAccentModel> CMorphDict::m_AccentModels

◆ m_Bases

CShortStringHolder CMorphDict::m_Bases

◆ m_LemmaInfos

vector<CLemmaInfoAndLemma> CMorphDict::m_LemmaInfos

◆ m_Prefixes

StringVector CMorphDict::m_Prefixes

◆ m_NPSs

vector<BYTE> CMorphDict::m_NPSs

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