Skip to content
Snippets Groups Projects

New entity types handling

Merged Yoann Schneider requested to merge entity-types into master
All threads resolved!
4 files
+ 207
43
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -19,7 +19,7 @@ from arkindex_worker.reporting import Reporter
from arkindex_worker.worker.base import BaseWorker
from arkindex_worker.worker.classification import ClassificationMixin
from arkindex_worker.worker.element import ElementMixin
from arkindex_worker.worker.entity import EntityMixin, EntityType # noqa: F401
from arkindex_worker.worker.entity import EntityMixin # noqa: F401
from arkindex_worker.worker.metadata import MetaDataMixin, MetaType # noqa: F401
from arkindex_worker.worker.transcription import TranscriptionMixin
from arkindex_worker.worker.version import WorkerVersionMixin # noqa: F401
@@ -92,6 +92,10 @@ class ElementsWorker(
self.classes = {}
self.entity_types = {}
"""Known and available entity types in processed corpus
"""
self._worker_version_cache = {}
def list_elements(self) -> Union[Iterable[CachedElement], List[str]]:
Loading