From 872ab9142128884fe271ef53f2cfc65b1364e805 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 5 May 2021 17:09:38 +0200 Subject: [PATCH] fix name of transliterator Should be different from the normalisation rules. --- nominatim/tokenizer/legacy_icu_tokenizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5