]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_db/tokenizer/place_sanitizer.py
remove code only needed for older PostgreSQL/PostGIS versions
[nominatim.git] / src / nominatim_db / tokenizer / place_sanitizer.py
index da41692bfed2fa4a7d5853c75184744c47d19c1c..55e4a459d5b0ffee8cba938a7d3c73cc1d355c2a 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,11 +35,10 @@ 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)))
 
-
     def process_names(self, place: PlaceInfo) -> Tuple[List[PlaceName], List[PlaceName]]:
         """ Extract a sanitized list of names and address parts from the
             given place. The function returns a tuple