]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix name of transliterator
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 5 May 2021 15:09:38 +0000 (17:09 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 5 May 2021 15:09:38 +0000 (17:09 +0200)
Should be different from the normalisation rules.

nominatim/tokenizer/legacy_icu_tokenizer.py

index 696004f5136d74a51a6b79985b2baf561f4a6371..065fdb03a27041eb79bb435db387fdfd316d6801 100644 (file)
@@ -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)