Language

ContentUnderstandingModelFactory.DocumentContentSegment Method

Definition

Detected document content segment.

public static Azure.AI.ContentUnderstanding.DocumentContentSegment DocumentContentSegment(string segmentId = default, string category = default, Azure.AI.ContentUnderstanding.ContentSpan span = default, int startPageNumber = 0, int endPageNumber = 0, float? confidence = default, string source = default);
static member DocumentContentSegment : string * string * Azure.AI.ContentUnderstanding.ContentSpan * int * int * Nullable<single> * string -> Azure.AI.ContentUnderstanding.DocumentContentSegment
Public Shared Function DocumentContentSegment (Optional segmentId As String = Nothing, Optional category As String = Nothing, Optional span As ContentSpan = Nothing, Optional startPageNumber As Integer = 0, Optional endPageNumber As Integer = 0, Optional confidence As Nullable(Of Single) = Nothing, Optional source As String = Nothing) As DocumentContentSegment

Parameters

segmentId
String

Segment identifier.

category
String

Classified content category.

span
ContentSpan

Span of the segment in the markdown content.

startPageNumber
Int32

Start page number (1-indexed) of the segment.

endPageNumber
Int32

End page number (1-indexed) of the segment.

confidence
Nullable<Single>

Confidence of the segmentation and category classification.

source
String

Encoded source that identifies the position of the segment in the content. Can be used as the 'range' input to route this segment to a sub-analyzer.

Returns

A new DocumentContentSegment instance for mocking.

Applies to