]> git.openstreetmap.org Git - nominatim.git/commit
move parsing of token analysis config to analyzer
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 4 Oct 2021 16:31:58 +0000 (18:31 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 4 Oct 2021 16:31:58 +0000 (18:31 +0200)
commitc171d881945e8c744e4a4a44c5f33edd0d8468fb
treefd13ee9fc4f57fa0c340beb84f3a01ffa9cdfc4e
parent7cfcbacfc75ab2e39ee7eab6a5cf40e8cbd152f5
move parsing of token analysis config to analyzer

Adds a second callback for the analyzer which is responsible
for parsing the configuration rules and converting it to
whatever format necessary. This way, each analyzer implementation
can define its own configuration rules.
nominatim/tokenizer/icu_rule_loader.py
nominatim/tokenizer/token_analysis/generic.py