From: Sarah Hoffmann Date: Wed, 5 May 2021 15:09:38 +0000 (+0200) Subject: fix name of transliterator X-Git-Tag: v4.0.0~91^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/872ab9142128884fe271ef53f2cfc65b1364e805?ds=inline;hp=-c fix name of transliterator Should be different from the normalisation rules. --- 872ab9142128884fe271ef53f2cfc65b1364e805 diff --git a/nominatim/tokenizer/legacy_icu_tokenizer.py b/nominatim/tokenizer/legacy_icu_tokenizer.py index 696004f5..065fdb03 100644 --- a/nominatim/tokenizer/legacy_icu_tokenizer.py +++ b/nominatim/tokenizer/legacy_icu_tokenizer.py @@ -127,7 +127,7 @@ class LegacyICUTokenizer: Analyzers are not thread-safe. You need to instantiate one per thread. """ norm = Transliterator.createFromRules("normalizer", self.normalization) - trans = Transliterator.createFromRules("normalizer", self.transliteration) + trans = Transliterator.createFromRules("trans", self.transliteration) return LegacyICUNameAnalyzer(self.dsn, norm, trans, self.abbreviations)