]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/dummy_tokenizer.py
Special phrases documentation updated
[nominatim.git] / test / python / dummy_tokenizer.py
index d3f006deb3b029ffe05db5b9b6d7f13ba3d20b91..2e61a24524c992e8cc41161fe7fffc5d6e11d6a4 100644 (file)
@@ -26,6 +26,10 @@ class DummyTokenizer:
         self.init_state = "loaded"
 
 
+    def finalize_import(self, _):
+        pass
+
+
     def name_analyzer(self):
         return DummyNameAnalyzer(self.analyser_cache)
 
@@ -50,7 +54,7 @@ class DummyNameAnalyzer:
     def add_postcodes_from_db(self):
         pass
 
-    def update_special_phrases(self, phrases):
+    def update_special_phrases(self, phrases, should_replace):
         self.analyser_cache['special_phrases'] = phrases
 
     def add_country_names(self, code, names):