AzureGroundingEnhancementLineSpan interface

A span object that represents a detected object and its bounding box information.

Properties

length

The length of the span in characters, measured in Unicode codepoints.

offset

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.

polygon

An array of objects representing points in the polygon that encloses the detected object.

text

The text content of the span that represents the detected object.

Property Details

length

The length of the span in characters, measured in Unicode codepoints.

length: number

Property Value

number

offset

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.

offset: number

Property Value

number

polygon

An array of objects representing points in the polygon that encloses the detected object.

polygon: AzureGroundingEnhancementCoordinatePoint[]

Property Value

text

The text content of the span that represents the detected object.

text: string

Property Value

string