X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c314a3092c5b51c7782015f6fa9ac093b46fa174..122ecd46269d48a8b2aacba2474311c0400d2a9d:/src/nominatim_api/search/query_analyzer_factory.py?ds=sidebyside 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. """