X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6e89310a9285f1ad15d8002bf68f578eada367a0..c314a3092c5b51c7782015f6fa9ac093b46fa174:/src/nominatim_db/tokenizer/place_sanitizer.py?ds=sidebyside diff --git a/src/nominatim_db/tokenizer/place_sanitizer.py b/src/nominatim_db/tokenizer/place_sanitizer.py index da41692b..68322f9f 100644 --- a/src/nominatim_db/tokenizer/place_sanitizer.py +++ b/src/nominatim_db/tokenizer/place_sanitizer.py @@ -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)))