]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/legacy_icu_tokenizer.py
fix name of transliterator
[nominatim.git] / 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)