ddc
Classes | Functions | Variables
Morphan.cpp File Reference
#include "../CommonLib/string_socket.h"
#include "Morphan.h"
Include dependency graph for Morphan.cpp:

Classes

struct  CFormAndGrammems
 
struct  CFormGroup
 

Functions

string GetGramInfoStr (string GramInfo, MorphLanguageEnum Langua)
 
string GetStringByParadigm (const CFormInfo *piParadigm, MorphLanguageEnum Langua)
 
bool IsUpper (int x, MorphLanguageEnum Langua)
 
bool GetParadigmCollection (string WordForm, vector< CFormInfo > &Paradigms, MorphLanguageEnum Langua)
 
int GetWidePOS (BYTE POS, QWORD Grammems, MorphLanguageEnum Langua)
 
vector< CFormGroupGetParadigmByGroups (const vector< CFormAndGrammems > &Forms, MorphLanguageEnum Langua, QWORD &CommonGrammems)
 
string GetInterfacePOS (string POS)
 
string GetParadigmFromDictionary (CFormInfo *piParadigm, MorphLanguageEnum Langua)
 
string Lemmatize (string WordForm, MorphLanguageEnum Langua, int &LemmasCount)
 
string GetParadigm (string WordForm, int LemmaNo, MorphLanguageEnum Langua)
 

Variables

const int ParagigmGroupsCount = 45
 
const string ParagigmGroups [ParagigmGroupsCount]
 

Function Documentation

◆ GetGramInfoStr()

string GetGramInfoStr ( string  GramInfo,
MorphLanguageEnum  Langua 
)

References CAgramtab::GetAllGrammems(), GetGramtabByLanguage(), CAgramtab::GetPartOfSpeech(), CAgramtab::GetPartOfSpeechStr(), and CAgramtab::GrammemsToStr().

Referenced by GetStringByParadigm().

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

◆ GetStringByParadigm()

string GetStringByParadigm ( const CFormInfo piParadigm,
MorphLanguageEnum  Langua 
)

◆ IsUpper()

bool IsUpper ( int  x,
MorphLanguageEnum  Langua 
)
inline

References is_upper_alpha().

Referenced by GetParadigmCollection().

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

◆ GetParadigmCollection()

bool GetParadigmCollection ( string  WordForm,
vector< CFormInfo > &  Paradigms,
MorphLanguageEnum  Langua 
)

References CLemmatizer::CreateParadigmCollection(), GetLemmatizerByLanguage(), and IsUpper().

Referenced by GetParadigm(), and Lemmatize().

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

◆ GetWidePOS()

int GetWidePOS ( BYTE  POS,
QWORD  Grammems,
MorphLanguageEnum  Langua 
)

Referenced by GetParadigmByGroups(), and GetParadigmFromDictionary().

Here is the caller graph for this function:

◆ GetParadigmByGroups()

vector<CFormGroup> GetParadigmByGroups ( const vector< CFormAndGrammems > &  Forms,
MorphLanguageEnum  Langua,
QWORD CommonGrammems 
)

◆ GetInterfacePOS()

string GetInterfacePOS ( string  POS)

References Trim().

Referenced by GetParadigmFromDictionary().

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

◆ GetParadigmFromDictionary()

string GetParadigmFromDictionary ( CFormInfo piParadigm,
MorphLanguageEnum  Langua 
)

◆ Lemmatize()

string Lemmatize ( string  WordForm,
MorphLanguageEnum  Langua,
int &  LemmasCount 
)

References GetParadigmCollection(), and GetStringByParadigm().

Referenced by CDDCServer::handle__get_paradigm().

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

◆ GetParadigm()

string GetParadigm ( string  WordForm,
int  LemmaNo,
MorphLanguageEnum  Langua 
)

References GetParadigmCollection(), and GetParadigmFromDictionary().

Referenced by CDDCServer::handle__get_paradigm().

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

Variable Documentation

◆ ParagigmGroupsCount

const int ParagigmGroupsCount = 45

Referenced by GetParadigmByGroups().

◆ ParagigmGroups

const string ParagigmGroups[ParagigmGroupsCount]

Referenced by GetParadigmByGroups().