X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2bab0ca060ff224091b20a0ac808a3febaba04b1..7d418da564484c3f2fffcd4801188d6ffc4f436a:/src/nominatim_api/search/query_analyzer_factory.py diff --git a/src/nominatim_api/search/query_analyzer_factory.py b/src/nominatim_api/search/query_analyzer_factory.py index 06443090..ca25ccb5 100644 --- a/src/nominatim_api/search/query_analyzer_factory.py +++ b/src/nominatim_api/search/query_analyzer_factory.py @@ -18,6 +18,7 @@ from ..connection import SearchConnection if TYPE_CHECKING: from .query import Phrase, QueryStruct + class AbstractQueryAnalyzer(ABC): """ Class for analysing incoming queries. @@ -29,7 +30,6 @@ class AbstractQueryAnalyzer(ABC): """ Analyze the given phrases and return the tokenized query. """ - @abstractmethod def normalize_text(self, text: str) -> str: """ Bring the given text into a normalized form. That is the @@ -38,7 +38,6 @@ class AbstractQueryAnalyzer(ABC): """ - async def make_query_analyzer(conn: SearchConnection) -> AbstractQueryAnalyzer: """ Create a query analyzer for the tokenizer used by the database. """