X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a7e048484b0f9066d1c6ba422087c2fd2c635b16..6c58a4c46cc7138cb9534089632c2d5faaf75327:/settings/icu_tokenizer.yaml?ds=inline diff --git a/settings/icu_tokenizer.yaml b/settings/icu_tokenizer.yaml index c6601faf..cd9c0d6d 100644 --- a/settings/icu_tokenizer.yaml +++ b/settings/icu_tokenizer.yaml @@ -8,8 +8,8 @@ normalization: - "ª > a" - "º > o" - "[[:Punctuation:][:Symbol:]\u02bc] > ' '" - - "ß > 'ss'" # German szet is unimbigiously equal to double ss - - "[^[:Letter:] [:Number:] [:Space:]] >" + - "ß > 'ss'" # German szet is unambiguously equal to double ss + - "[^[:alnum:] [:Canonical_Combining_Class=Virama:] [:Space:]] >" - "[:Lm:] >" - ":: [[:Number:]] Latin ()" - ":: [[:Number:]] Ascii ();" @@ -25,6 +25,13 @@ transliteration: - "[^a-z0-9[:Space:]] >" - ":: NFC ()" sanitizers: + - step: clean-housenumbers + filter-kind: + - housenumber + - conscriptionnumber + - streetnumber + convert-to-name: + - (\A|.*,)[^\d,]{3,}(,.*|\Z) - step: split-name-list - step: strip-brace-terms - step: tag-analyzer-by-language @@ -34,6 +41,8 @@ sanitizers: mode: append token-analysis: - analyzer: generic + - id: "@housenumber" + analyzer: housenumbers - id: bg analyzer: generic mode: variant-only