diff --git a/src/morphodict/lexicon/models.py b/src/morphodict/lexicon/models.py index fa1bd45f0..d32adc090 100644 --- a/src/morphodict/lexicon/models.py +++ b/src/morphodict/lexicon/models.py @@ -9,7 +9,7 @@ from django.urls import reverse from django.utils.functional import cached_property -from morphodict.api.schema import SerializedDefinition +from morphodict.search.serializer import SerializedDefinition from CreeDictionary.utils import ( shared_res_dir, ) diff --git a/src/morphodict/search/presentation.py b/src/morphodict/search/presentation.py index 402720b4f..dedc8ed80 100644 --- a/src/morphodict/search/presentation.py +++ b/src/morphodict/search/presentation.py @@ -22,7 +22,7 @@ from morphodict.analysis import RichAnalysis from morphodict.lexicon.models import Wordform, SourceLanguageKeyword -from morphodict.api.schema import ( +from morphodict.search.serializer import ( SerializedDefinition, SerializedWordform, SerializedLinguisticTag, diff --git a/src/morphodict/api/schema.py b/src/morphodict/search/serializer.py similarity index 100% rename from src/morphodict/api/schema.py rename to src/morphodict/search/serializer.py diff --git a/src/morphodict/search/types.py b/src/morphodict/search/types.py index 48151abfa..5f7cffe7f 100644 --- a/src/morphodict/search/types.py +++ b/src/morphodict/search/types.py @@ -6,7 +6,7 @@ from enum import Enum from typing import NewType, Optional, Protocol, cast, Iterable, Tuple -from morphodict.api.schema import SerializedLinguisticTag +from morphodict.search.serializer import SerializedLinguisticTag from CreeDictionary.utils.types import FSTTag, Label from morphodict.lexicon.models import Wordform, wordform_cache from morphodict.search import ranking diff --git a/src/morphodict/search_quality/__init__.py b/src/morphodict/search_quality/__init__.py index 135483e76..88c0f3269 100644 --- a/src/morphodict/search_quality/__init__.py +++ b/src/morphodict/search_quality/__init__.py @@ -1,7 +1,7 @@ from pathlib import Path from typing import TypedDict -from morphodict.api.schema import SerializedSearchResult +from morphodict.search.serializer import SerializedSearchResult class SearchResult(TypedDict): diff --git a/src/morphodict/search_quality/analyze_results.py b/src/morphodict/search_quality/analyze_results.py index 9c45a5799..81c3b5098 100644 --- a/src/morphodict/search_quality/analyze_results.py +++ b/src/morphodict/search_quality/analyze_results.py @@ -10,7 +10,7 @@ from os import PathLike from typing import cast, TypedDict, Optional -from morphodict.api.schema import SerializedSearchResult +from morphodict.search.serializer import SerializedSearchResult from . import DEFAULT_SAMPLE_FILE, SampleSearchResultsJson from .sample import load_sample_definition, SampleDefinition