DocumentSpan Class
Contiguous region of the content of the property, specified as an offset and length.
- Inheritance
-
builtins.objectDocumentSpan
Constructor
DocumentSpan(**kwargs: Any)
Methods
from_dict |
Converts a dict in the shape of a DocumentSpan to the model itself. |
to_dict |
Returns a dict representation of DocumentSpan. |
from_dict
Converts a dict in the shape of a DocumentSpan to the model itself.
from_dict(data: Dict) -> DocumentSpan
Parameters
Name | Description |
---|---|
data
Required
|
A dictionary in the shape of DocumentSpan. |
Returns
Type | Description |
---|---|
DocumentSpan |
to_dict
Attributes
length
Number of characters in the content represented by the span.
length: int
offset
Zero-based index of the content represented by the span.
offset: int
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python