X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bc7f6209d83dcc161f093ce9907991facabb3491..2dafc4cf4fc46ea4be293a458d565fbff645ac28:/nominatim/tokenizer/icu_token_analysis.py diff --git a/nominatim/tokenizer/icu_token_analysis.py b/nominatim/tokenizer/icu_token_analysis.py index 3c4d7298..7ea31e8e 100644 --- a/nominatim/tokenizer/icu_token_analysis.py +++ b/nominatim/tokenizer/icu_token_analysis.py @@ -11,7 +11,7 @@ into a Nominatim token. from typing import Mapping, Optional, TYPE_CHECKING from icu import Transliterator -from nominatim.tokenizer.token_analysis.base import Analyser +from nominatim.tokenizer.token_analysis.base import Analyzer if TYPE_CHECKING: from typing import Any @@ -19,7 +19,7 @@ if TYPE_CHECKING: class ICUTokenAnalysis: """ Container class collecting the transliterators and token analysis - modules for a single NameAnalyser instance. + modules for a single Analyser instance. """ def __init__(self, norm_rules: str, trans_rules: str, @@ -36,7 +36,7 @@ class ICUTokenAnalysis: for name, arules in analysis_rules.items()} - def get_analyzer(self, name: Optional[str]) -> Analyser: + def get_analyzer(self, name: Optional[str]) -> Analyzer: """ Return the given named analyzer. If no analyzer with that name exists, return the default analyzer. """