]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/icu_tokenizer.py
move postcode matcher in a separate file
[nominatim.git] / nominatim / tokenizer / icu_tokenizer.py
index 61c47c118805f4638cd5fc022d006564e1ff9b15..0dc551e1b4ce6e828720fad913502c185e49c327 100644 (file)
@@ -607,7 +607,7 @@ class LegacyICUNameAnalyzer(AbstractAnalyzer):
     def _add_postcode(self, item):
         """ Make sure the normalized postcode is present in the word table.
         """
-        analyzer = self.token_analysis.get_analyzer('@postcode')
+        analyzer = self.token_analysis.analysis.get('@postcode')
 
         if analyzer is None:
             postcode_name = item.name.strip().upper()