Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /DS4SD_deepsearch-toolkit /deepsearch /model /kinds /nlp /model.py
| from abc import abstractmethod | |
| from typing import List, Optional | |
| from deepsearch.model.base.model import BaseDSModel | |
| from deepsearch.model.base.types import BaseModelConfig | |
| from deepsearch.model.kinds.nlp.types import ( | |
| AnnotateEntitiesOutput, | |
| AnnotatePropertiesOutput, | |
| AnnotateRelationshipsOutput, | |
| NLPConfig, | |
| ) | |
| class BaseNLPModel(BaseDSModel): | |
| def annotate_batched_entities( | |
| self, | |
| object_type: str, | |
| items: List[str], | |
| entity_names: Optional[List[str]], | |
| ) -> AnnotateEntitiesOutput: | |
| raise NotImplementedError() | |
| def annotate_batched_relationships( | |
| self, | |
| object_type: str, | |
| items: List[str], | |
| entities: List[dict], | |
| relationship_names: Optional[List[str]], | |
| ) -> AnnotateRelationshipsOutput: | |
| raise NotImplementedError() | |
| def annotate_batched_properties( | |
| self, | |
| object_type: str, | |
| items: List[str], | |
| entities: List[dict], | |
| property_names: Optional[List[str]], | |
| ) -> AnnotatePropertiesOutput: | |
| raise NotImplementedError() | |
| def get_nlp_config(self) -> NLPConfig: | |
| raise NotImplementedError() | |
| def get_config(self) -> BaseModelConfig: | |
| return self.get_nlp_config() | |
Xet Storage Details
- Size:
- 1.33 kB
- Xet hash:
- 1b6039729ca56e80984c1b420a8b28b9e36284cdc468abffc7831a157aff0b88
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.