LemmatizationQueryProcessor
Models & Types · AiDotNet.RetrievalAugmentedGeneration.QueryProcessors
Reduces words to their base or dictionary form (lemma) for better matching.
Inheritance: QueryProcessorBase → LemmatizationQueryProcessor
For Beginners
Converts words to their basic form.
Examples:
- “running” → “run”
- “better” → “good”
- “was” → “be”
- “cars” → “car”
This helps match documents that use different forms of the same word!
How It Works
Lemmatization transforms words to their base form considering the word’s meaning. Unlike stemming, it produces valid dictionary words.
Constructors
| Constructor | Summary |
|---|---|
LemmatizationQueryProcessor(Dictionary<string, string> customLemmaMap) |
Initializes a new instance of the LemmatizationQueryProcessor class. |