#include "../common/utilit.h"
#include "ConcHolder.h"
#include "../PCRE/pcre_rml.h"
Go to the source code of this file.
Classes
- class CQueryNode
- CQueryNode is an abstract class for any node in a query parse tree. A parse tree is built by YACC during CQueryParser::ParseQuery. This class contains all members which are common to atomic and operation nodes. More...
- class CQueryBinaryOperationNode
- class CQueryAndOperation
- CQueryAndOperation implements the hit intersection or "and" operator: for example, "Mother&&father". More...
- class CQueryOrOperation
- CQueryAndOperation implements the hit union or "or" operator: for example, "Mother||father". More...
- class CQueryTokenNode
- CQueryTokenNode is a class which corresponds to one token or it's singular property (for example lemma). More...
- class CQuerySequenceNode
- CQuerySequenceNode is an implementation of sequence operator, for example, "Mother and father". This class holds a sequence of nodes of type CQueryTokenNode (slot m_Items). Between m_Items[i] and m_Items[i+1] must be no more than m_Distances[i] tokens. More...
- class CQueryNearNode
- CQueryNearNode is a class which is used to search two or three nodes, which are inside some text period of length CQueryNearNode::m_Distance. It other words it is an implementation of "near" operator: for example, NEAR(a,b,2). More...
- class CQueryWithNode
- CQueryWithNode is a class which is used to search a node which simultaneously has two properties, namely m_pChild1 and m_pChild2. (implementation of "with" operator: for example, Mother with [NOUN] ). More...
Functions
Function Documentation
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 CQueryTokenNode::CreateTokenPattern().