foley.analysis#
The one text analyzer foley’s keyword matchers share: lowercase [a-z0-9]+ words.
The stdlib BM25 (foley.index.indexes) and the UCS keyword resolver
(foley.index.taxonomy.text) both tokenise with tokenize(), so a word the
keyword index sees is the word the taxonomy sees. Stdlib only, so any module can
import it without a cycle.
Module Attributes
a run of lowercase ASCII letters and digits (everything else separates). |
Functions
|
The lowercase word/number tokens of |
- foley.analysis.WORD_PATTERN = re.compile('[a-z0-9]+')#
a run of lowercase ASCII letters and digits (everything else separates).
- Type:
A word