]> git.openstreetmap.org Git - nominatim.git/commit
extend ICU config to accomodate multiple analysers
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 4 Oct 2021 14:40:28 +0000 (16:40 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 4 Oct 2021 14:40:28 +0000 (16:40 +0200)
commit52847b61a3e1bc0791dd23809dc3c50fe6810df2
treeaf6ac9735f57a5fffd1e1c17abe62595343af447
parent5a3655983464b3739f7a4318dc002f07c770a43c
extend ICU config to accomodate multiple analysers

Adds parsing of multiple variant lists from the configuration.
Every entry except one must have a unique 'id' paramter to
distinguish the entries. The entry without id is considered
the default. Currently only the list without an id is used
for analysis.
nominatim/tokenizer/icu_rule_loader.py
settings/icu_tokenizer.yaml
test/python/test_tokenizer_icu.py
test/python/test_tokenizer_icu_name_processor.py
test/python/test_tokenizer_icu_rule_loader.py