DocumentError Class
DocumentError is an error object which represents an error on the individual document.
- Inheritance
-
azure.ai.textanalytics._dict_mixin.DictMixinDocumentError
Constructor
DocumentError(**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
error
The document error.
error: TextAnalyticsError
id
Unique, non-empty document identifier that matches the document id that was passed in with the request. If not specified in the request, an id is assigned for the document.
id: str
is_error
Boolean check for error item when iterating over list of results. Always True for an instance of a DocumentError.
is_error: Literal[True] = True
kind
Error kind - "DocumentError".
kind: Literal['DocumentError'] = 'DocumentError'
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python