X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6e89310a9285f1ad15d8002bf68f578eada367a0..7b21354a8ae6f07ec3774e7114e546c38568f693:/src/nominatim_db/tokenizer/icu_rule_loader.py?ds=inline diff --git a/src/nominatim_db/tokenizer/icu_rule_loader.py b/src/nominatim_db/tokenizer/icu_rule_loader.py index 9e7f00b4..0aca2921 100644 --- a/src/nominatim_db/tokenizer/icu_rule_loader.py +++ b/src/nominatim_db/tokenizer/icu_rule_loader.py @@ -14,10 +14,10 @@ import logging from icu import Transliterator -from nominatim_core.config import flatten_config_list, Configuration -from nominatim_core.db.properties import set_property, get_property -from nominatim_core.db.connection import Connection -from nominatim_core.errors import UsageError +from ..config import flatten_config_list, Configuration +from ..db.properties import set_property, get_property +from ..db.connection import Connection +from ..errors import UsageError from .place_sanitizer import PlaceSanitizer from .icu_token_analysis import ICUTokenAnalysis from .token_analysis.base import AnalysisModule, Analyzer @@ -184,7 +184,7 @@ class TokenAnalyzerRule: raise UsageError("'analyzer' parameter needs to be simple string") self._analysis_mod: AnalysisModule = \ - config.load_plugin_module(analyzer_name, 'nominatim.tokenizer.token_analysis') + config.load_plugin_module(analyzer_name, 'nominatim_db.tokenizer.token_analysis') self.config = self._analysis_mod.configure(rules, normalizer, transliterator)