Skip to content

Commit

Permalink
regenerated models
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm committed Oct 23, 2024
1 parent 67b1658 commit 1661253
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


class ImpressoNamedEntityRecognitionRequestMethod(str, Enum):
NEL = "nel"
NER = "ner"
NER_NEL = "ner-nel"

Expand All @@ -11,6 +12,7 @@ def __str__(self) -> str:


ImpressoNamedEntityRecognitionRequestMethodLiteral = Literal[
"nel",
"ner",
"ner-nel",
]
4 changes: 2 additions & 2 deletions impresso/api_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).',
),
]

Expand Down

0 comments on commit 1661253

Please sign in to comment.