term_mapping library

Suggester works by tokenising both suggestions and input using a Term Mapping and finding partial matches between them via prefix searching.

Choice of Term Mapping determines how Suggester matches to a particular dataset.

A Term Mapping that generates more terms will result in higher memory usage.

Classes

Alpha
Each term represents a run of Letters
AlphaAndNumeric
Each term represents a run of Letters and Numbers
AlphaOrNumeric
Each term represents a run of Letters or Numbers
Ngrams
Create ngrams of specified size and padding character
Tokens
Match runs of alphanumeric characters seperated by separators