ddc
Functions
graveyard.cc File Reference

Functions

void GetWordForms (const MorphLanguageEnum Langua, const string &src, set< string > &WordForms)
 
void AddFormsWithDifferentRegisters (const MorphLanguageEnum Langua, set< string > &WordForms)
 

Function Documentation

◆ GetWordForms()

void GetWordForms ( const MorphLanguageEnum  Langua,
const string &  src,
set< string > &  WordForms 
)

compute the set of types WordForms which may share a lemma with src in language Langua.

The underlying CLemmatizer should handle transcoding of user queries transparently, assuming you called CLemmatizer::initIconv() with the appropriate encoding arguments.

This is very ugly, and the entire morphology system needs an overhaul.

Formerly a hidden function in QueryNode.cpp.

References CLemmatizer::CreateParadigmCollection(), errProcessMorphology, Format(), CFormInfo::GetCount(), GetLemmatizerByLanguage(), CFormInfo::GetWordForm(), is_upper_alpha(), morphUnknown, CLemmatizer::recode_ext2int(), CLemmatizer::recode_int2ext(), ReverseChar(), and RmlMakeLower().

Referenced by CQTokenOccurrenceIterator::operator==().

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

◆ AddFormsWithDifferentRegisters()

void AddFormsWithDifferentRegisters ( const MorphLanguageEnum  Langua,
set< string > &  WordForms 
)

References is_lower_alpha(), ReverseChar(), RmlMakeLower(), and RmlMakeUpper().

Here is the call graph for this function: