]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_db/tokenizer/place_sanitizer.py
Merge pull request #3536 from lonvia/remove-php
[nominatim.git] / src / nominatim_db / tokenizer / place_sanitizer.py
index da41692bfed2fa4a7d5853c75184744c47d19c1c..68322f9fd5cdf5c488d0f2dca322d31d7ba1c5f6 100644 (file)
@@ -10,8 +10,8 @@ is handed to the token analysis.
 """
 from typing import Optional, List, Mapping, Sequence, Callable, Any, Tuple
 
-from nominatim_core.errors import UsageError
-from nominatim_core.config import Configuration
+from ..errors import UsageError
+from ..config import Configuration
 from .sanitizers.config import SanitizerConfig
 from .sanitizers.base import SanitizerHandler, ProcessInfo
 from ..data.place_name import PlaceName
@@ -35,7 +35,7 @@ class PlaceSanitizer:
                     raise UsageError("'step' attribute must be a simple string.")
 
                 module: SanitizerHandler = \
-                    config.load_plugin_module(func['step'], 'nominatim.tokenizer.sanitizers')
+                    config.load_plugin_module(func['step'], 'nominatim_db.tokenizer.sanitizers')
 
                 self.handlers.append(module.create(SanitizerConfig(func)))