ddc
Functions | Variables
InitDicts.cpp File Reference
#include "ConcCommon.h"
Include dependency graph for InitDicts.cpp:

Functions

template<class T , class Y >
void InitMorphologySystem (T *&Lemmatizer, Y *&Gramtab)
 
const CLemmatizerGetLemmatizerByLanguage (MorphLanguageEnum Langua)
 return a morphology dictionary by a language indentifier More...
 
const CAgramtabGetGramtabByLanguage (MorphLanguageEnum Langua)
 return a grammatical table by a language indentifier More...
 
bool InitConcordDicts ()
 initializes morphology dictionaries More...
 
void FreeConcordDicts ()
 deletes morphology dictionaries More...
 

Variables

bool bEnglishMorph = false
 
bool bRussianMorph = false
 
bool bGermanMorph = false
 
CLemmatizerEnglishengLemmatizer = 0
 
CLemmatizerRussianrusLemmatizer = 0
 
CLemmatizerGermangerLemmatizer = 0
 
CEngGramTabengGramTab = 0
 
CRusGramTabrusGramTab = 0
 
CGerGramTabgerGramTab = 0
 
pthread_mutex_t ddcMorphMutex = PTHREAD_MUTEX_INITIALIZER
 global mutex for non-thread-safe curl operations (global init, lru-cached proxy) More...
 

Function Documentation

◆ InitMorphologySystem()

template<class T , class Y >
void InitMorphologySystem ( T *&  Lemmatizer,
Y *&  Gramtab 
)

References ddcLogDebug, ddcLogError, ddcMorphMutex, Format(), and GetStringByLanguage().

Referenced by GetGramtabByLanguage(), GetLemmatizerByLanguage(), and InitConcordDicts().

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

◆ GetLemmatizerByLanguage()

const CLemmatizer* GetLemmatizerByLanguage ( MorphLanguageEnum  Langua)

return a morphology dictionary by a language indentifier

References bEnglishMorph, bGermanMorph, bRussianMorph, engLemmatizer, gerLemmatizer, InitMorphologySystem(), morphEnglish, morphGerman, morphRussian, and rusLemmatizer.

Referenced by TxMorph::expand(), GetGramInfosFromWord(), GetParadigmCollection(), and GetWordForms().

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

◆ GetGramtabByLanguage()

const CAgramtab* GetGramtabByLanguage ( MorphLanguageEnum  Langua)

return a grammatical table by a language indentifier

References bEnglishMorph, bGermanMorph, bRussianMorph, engGramTab, gerGramTab, InitMorphologySystem(), morphEnglish, morphGerman, morphRussian, and rusGramTab.

Referenced by GetGramInfosFromWord(), GetGramInfoStr(), GetParadigmByGroups(), GetParadigmFromDictionary(), and GetStringByParadigm().

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

◆ InitConcordDicts()

bool InitConcordDicts ( )

initializes morphology dictionaries

References bEnglishMorph, bGermanMorph, bRussianMorph, ddcLogInfo, InitMorphologySystem(), and CExpc::m_strCause.

Referenced by do_start().

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

◆ FreeConcordDicts()

void FreeConcordDicts ( )

deletes morphology dictionaries

References engGramTab, engLemmatizer, gerGramTab, gerLemmatizer, rusGramTab, and rusLemmatizer.

Referenced by UnloadData().

Here is the caller graph for this function:

Variable Documentation

◆ bEnglishMorph

bool bEnglishMorph = false

◆ bRussianMorph

bool bRussianMorph = false

◆ bGermanMorph

bool bGermanMorph = false

◆ engLemmatizer

CLemmatizerEnglish* engLemmatizer = 0

◆ rusLemmatizer

CLemmatizerRussian* rusLemmatizer = 0

◆ gerLemmatizer

CLemmatizerGerman* gerLemmatizer = 0

◆ engGramTab

CEngGramTab* engGramTab = 0

◆ rusGramTab

CRusGramTab* rusGramTab = 0

◆ gerGramTab

CGerGramTab* gerGramTab = 0

◆ ddcMorphMutex

pthread_mutex_t ddcMorphMutex = PTHREAD_MUTEX_INITIALIZER

global mutex for non-thread-safe curl operations (global init, lru-cached proxy)

Referenced by InitMorphologySystem().