X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/efafa5271957fb54b356ec1c90e8613f14de40d4..7a1d22ff15849a349e3cffdf604877a11060c749:/nominatim/tokenizer/place_sanitizer.py diff --git a/nominatim/tokenizer/place_sanitizer.py b/nominatim/tokenizer/place_sanitizer.py index 1d47a8b4..913b363c 100644 --- a/nominatim/tokenizer/place_sanitizer.py +++ b/nominatim/tokenizer/place_sanitizer.py @@ -11,6 +11,7 @@ is handed to the token analysis. import importlib from nominatim.errors import UsageError +from nominatim.tokenizer.sanitizers.config import SanitizerConfig class PlaceName: """ A searchable name for a place together with properties. @@ -117,7 +118,7 @@ class PlaceSanitizer: raise UsageError("Sanitizer rule is missing the 'step' attribute.") module_name = 'nominatim.tokenizer.sanitizers.' + func['step'].replace('-', '_') handler_module = importlib.import_module(module_name) - self.handlers.append(handler_module.create(func)) + self.handlers.append(handler_module.create(SanitizerConfig(func))) def process_names(self, place):