]> git.openstreetmap.org Git - nominatim.git/commit
fix subsequent replacements
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 1 Jul 2021 15:56:23 +0000 (17:56 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 4 Jul 2021 08:28:28 +0000 (10:28 +0200)
commite85f7e7aa9b9c297b6b5f266d811c935af8cbb9e
treecb093ad02293b02ad8386f01832527be08a390b0
parent7b0f6b7905cc16d8e8dfb7619fe09de05e828f1d
fix subsequent replacements

Two replacement words directly following each other did not
work as expected because each expects a space at the
beginning/end while there was only one space available.

Also forbit composing a word after a space was added in the
end by a previous replacement.
nominatim/tokenizer/icu_name_processor.py
settings/legacy_icu_tokenizer.yaml
test/python/test_tokenizer_icu_name_processor.py