ddc
|
#include "ConcCommon.h"
Functions | |
template<class T , class Y > | |
void | InitMorphologySystem (T *&Lemmatizer, Y *&Gramtab) |
const CLemmatizer * | GetLemmatizerByLanguage (MorphLanguageEnum Langua) |
return a morphology dictionary by a language indentifier More... | |
const CAgramtab * | GetGramtabByLanguage (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 |
CLemmatizerEnglish * | engLemmatizer = 0 |
CLemmatizerRussian * | rusLemmatizer = 0 |
CLemmatizerGerman * | gerLemmatizer = 0 |
CEngGramTab * | engGramTab = 0 |
CRusGramTab * | rusGramTab = 0 |
CGerGramTab * | gerGramTab = 0 |
pthread_mutex_t | ddcMorphMutex = PTHREAD_MUTEX_INITIALIZER |
global mutex for non-thread-safe curl operations (global init, lru-cached proxy) More... | |
void InitMorphologySystem | ( | T *& | Lemmatizer, |
Y *& | Gramtab | ||
) |
References ddcLogDebug, ddcLogError, ddcMorphMutex, Format(), and GetStringByLanguage().
Referenced by GetGramtabByLanguage(), GetLemmatizerByLanguage(), and InitConcordDicts().
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().
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().
bool InitConcordDicts | ( | ) |
initializes morphology dictionaries
References bEnglishMorph, bGermanMorph, bRussianMorph, ddcLogInfo, InitMorphologySystem(), and CExpc::m_strCause.
Referenced by do_start().
void FreeConcordDicts | ( | ) |
deletes morphology dictionaries
References engGramTab, engLemmatizer, gerGramTab, gerLemmatizer, rusGramTab, and rusLemmatizer.
Referenced by UnloadData().
bool bEnglishMorph = false |
Referenced by GetGramtabByLanguage(), GetLemmatizerByLanguage(), and InitConcordDicts().
bool bRussianMorph = false |
Referenced by GetGramtabByLanguage(), GetLemmatizerByLanguage(), and InitConcordDicts().
bool bGermanMorph = false |
Referenced by GetGramtabByLanguage(), GetLemmatizerByLanguage(), and InitConcordDicts().
CLemmatizerEnglish* engLemmatizer = 0 |
Referenced by FreeConcordDicts(), and GetLemmatizerByLanguage().
CLemmatizerRussian* rusLemmatizer = 0 |
Referenced by FreeConcordDicts(), and GetLemmatizerByLanguage().
CLemmatizerGerman* gerLemmatizer = 0 |
Referenced by FreeConcordDicts(), and GetLemmatizerByLanguage().
CEngGramTab* engGramTab = 0 |
Referenced by FreeConcordDicts(), and GetGramtabByLanguage().
CRusGramTab* rusGramTab = 0 |
Referenced by FreeConcordDicts(), and GetGramtabByLanguage().
CGerGramTab* gerGramTab = 0 |
Referenced by FreeConcordDicts(), and GetGramtabByLanguage().
pthread_mutex_t ddcMorphMutex = PTHREAD_MUTEX_INITIALIZER |
global mutex for non-thread-safe curl operations (global init, lru-cached proxy)
Referenced by InitMorphologySystem().