]> git.openstreetmap.org Git - nominatim.git/commit
overhaul the token analysis interface
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 29 Jul 2022 13:14:11 +0000 (15:14 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 29 Jul 2022 13:14:11 +0000 (15:14 +0200)
commit51b6d16dc6363577795ec6baffb50150f220fc77
tree140c4547126f8d60d557dd1b4d60bd7f05df5d2b
parent34d27ed45cac67fd155f6997d82fa6a5d8946ce9
overhaul the token analysis interface

The functional split betweenthe two functions is now that the
first one creates the ID that is used in the word table and
the second one creates the variants. There no longer is a
requirement that the ID is the normalized version. We might
later reintroduce the requirement that a normalized version be available
but it doesn't necessarily need to be through the ID.

The function that creates the ID now gets the full PlaceName. That way
it might take into account attributes that were set by the sanitizers.

Finally rename both functions to something more sane.
docs/develop/ICU-Tokenizer-Modules.md
nominatim/tokenizer/icu_tokenizer.py
nominatim/tokenizer/token_analysis/base.py
nominatim/tokenizer/token_analysis/generic.py
nominatim/tokenizer/token_analysis/housenumbers.py
nominatim/tokenizer/token_analysis/postcodes.py
test/python/tokenizer/token_analysis/test_analysis_postcodes.py
test/python/tokenizer/token_analysis/test_generic.py
test/python/tokenizer/token_analysis/test_generic_mutation.py