ClassifyDocumentResult Class
ClassifyDocumentResult is a result object which contains the classifications for a particular document.
- Inheritance
-
azure.ai.textanalytics._dict_mixin.DictMixinClassifyDocumentResult
Constructor
ClassifyDocumentResult(**kwargs: Any)
Methods
get | |
has_key | |
items | |
keys | |
update | |
values |
get
get(key: str, default: Any | None = None) -> Any
Parameters
Name | Description |
---|---|
key
Required
|
|
default
Required
|
Default value: None
|
has_key
has_key(k: str) -> bool
Parameters
Name | Description |
---|---|
k
Required
|
|
items
items() -> Iterable[Tuple[str, Any]]
keys
keys() -> Iterable[str]
update
update(*args: Any, **kwargs: Any) -> None
values
values() -> Iterable[Any]
Attributes
classifications
Recognized classification results in the document.
classifications: List[ClassificationCategory]
id
Unique, non-empty document identifier.
id: str
is_error
Boolean check for error item when iterating over list of results. Always False for an instance of a ClassifyDocumentResult.
is_error: Literal[False] = False
kind
The text analysis kind - "CustomDocumentClassification".
kind: Literal['CustomDocumentClassification'] = 'CustomDocumentClassification'
statistics
If show_stats=True was specified in the request this field will contain information about the document payload.
statistics: TextDocumentStatistics | None = None
warnings
Warnings encountered while processing document.
warnings: List[TextAnalyticsWarning]
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure SDK for Python