DocumentSpan Class
Contiguous region of the content of the property, specified as an offset and length.
Constructor
Python
DocumentSpan(**kwargs: Any)
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.
Python
from_dict(data: Dict) -> DocumentSpan
Parameters
Name | Description |
---|---|
data
Required
|
A dictionary in the shape of DocumentSpan. |
Returns
Type | Description |
---|---|
DocumentSpan |
to_dict
Returns a dict representation of DocumentSpan.
Python
to_dict() -> Dict
Returns
Type | Description |
---|---|
dict |
length
Number of characters in the content represented by the span.
Python
length: int
offset
Zero-based index of the content represented by the span.
Python
offset: int
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python feedback
Azure SDK for Python is an open source project. Select a link to provide feedback: