Microsoft Azure · Schema
span
A span object that represents a detected object and its bounding box information.
API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1
Properties
| Name | Type | Description |
|---|---|---|
| text | string | The text content of the span that represents the detected object. |
| offset | integer | The character offset within the text where the span begins. This offset is defined as the position of the first character of the span, counting from the start of the text as Unicode codepoints. |
| length | integer | The length of the span in characters, measured in Unicode codepoints. |
| polygon | array | An array of objects representing points in the polygon that encloses the detected object. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/span",
"title": "span",
"type": "object",
"description": "A span object that represents a detected object and its bounding box information.",
"properties": {
"text": {
"type": "string",
"description": "The text content of the span that represents the detected object."
},
"offset": {
"type": "integer",
"description": "The character offset within the text where the span begins. This offset is defined as the position of the first character of the span, counting from the start of the text as Unicode codepoints."
},
"length": {
"type": "integer",
"description": "The length of the span in characters, measured in Unicode codepoints."
},
"polygon": {
"type": "array",
"description": "An array of objects representing points in the polygon that encloses the detected object.",
"items": {
"type": "object",
"properties": {
"x": {
"type": "number",
"description": "The x-coordinate of the point."
},
"y": {
"type": "number",
"description": "The y-coordinate of the point."
}
}
}
}
},
"required": [
"text",
"offset",
"length",
"polygon"
]
}