TextSpan¶
-
class
oci.data_labeling_service_dataplane.models.TextSpan(**kwargs)¶ Bases:
objectA wrapper class for offset and length, which together, represent a span of text in a text document.
Methods
__init__(**kwargs)Initializes a new TextSpan object with values from keyword arguments. Attributes
lengthGets the length of this TextSpan. offsetGets the offset of this TextSpan. -
__init__(**kwargs)¶ Initializes a new TextSpan object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - offset (float) – The value to assign to the offset property of this TextSpan.
- length (float) – The value to assign to the length property of this TextSpan.
-
length¶ Gets the length of this TextSpan. The length of the selected text.
Returns: The length of this TextSpan. Return type: float
-
offset¶ Gets the offset of this TextSpan. The offset of the selected text within the entire text.
Returns: The offset of this TextSpan. Return type: float
-