From 16612538e36b47626023610df4c6ce4960563348 Mon Sep 17 00:00:00 2001 From: Roman Kalyakin Date: Wed, 23 Oct 2024 11:05:55 +0200 Subject: [PATCH] regenerated models --- .../models/impresso_named_entity_recognition_request.py | 6 +++--- .../impresso_named_entity_recognition_request_method.py | 2 ++ impresso/api_models.py | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/impresso/api_client/models/impresso_named_entity_recognition_request.py b/impresso/api_client/models/impresso_named_entity_recognition_request.py index 2cd2db6..45540b2 100644 --- a/impresso/api_client/models/impresso_named_entity_recognition_request.py +++ b/impresso/api_client/models/impresso_named_entity_recognition_request.py @@ -14,9 +14,9 @@ class ImpressoNamedEntityRecognitionRequest: Attributes: text (str): Text to be processed for named entity recognition - method (Union[Unset, ImpressoNamedEntityRecognitionRequestMethod]): NER method to be used: `ner` (default) or - `ner-nel` (named entity recognition with named entity linking). Default: - ImpressoNamedEntityRecognitionRequestMethod.NER. + method (Union[Unset, ImpressoNamedEntityRecognitionRequestMethod]): NER method to be used: `ner` (default), + `ner-nel` (named entity recognition with named entity linking) and `nel` (linking only - enclose entities in + [START] [END] tags). Default: ImpressoNamedEntityRecognitionRequestMethod.NER. """ text: str diff --git a/impresso/api_client/models/impresso_named_entity_recognition_request_method.py b/impresso/api_client/models/impresso_named_entity_recognition_request_method.py index d0e47dc..1765f7b 100644 --- a/impresso/api_client/models/impresso_named_entity_recognition_request_method.py +++ b/impresso/api_client/models/impresso_named_entity_recognition_request_method.py @@ -3,6 +3,7 @@ class ImpressoNamedEntityRecognitionRequestMethod(str, Enum): + NEL = "nel" NER = "ner" NER_NEL = "ner-nel" @@ -11,6 +12,7 @@ def __str__(self) -> str: ImpressoNamedEntityRecognitionRequestMethodLiteral = Literal[ + "nel", "ner", "ner-nel", ] diff --git a/impresso/api_models.py b/impresso/api_models.py index 5ab1901..0dd2015 100644 --- a/impresso/api_models.py +++ b/impresso/api_models.py @@ -330,10 +330,10 @@ class ImpressoNerRequest(BaseModel): ), ] method: Annotated[ - Optional[Literal['ner', 'ner-nel']], + Optional[Literal['ner', 'ner-nel', 'nel']], Field( 'ner', - description='NER method to be used: `ner` (default) or `ner-nel` (named entity recognition with named entity linking).', + description='NER method to be used: `ner` (default), `ner-nel` (named entity recognition with named entity linking) and `nel` (linking only - enclose entities in [START] [END] tags).', ), ]