Language

ContentUnderstandingModelFactory.DocumentChunk Method

Definition

A chunk of document content, defined by one or more spans in the markdown.

public static Azure.AI.ContentUnderstanding.DocumentChunk DocumentChunk(System.Collections.Generic.IEnumerable<Azure.AI.ContentUnderstanding.ContentSpan> spans = default, string source = default);
static member DocumentChunk : seq<Azure.AI.ContentUnderstanding.ContentSpan> * string -> Azure.AI.ContentUnderstanding.DocumentChunk
Public Shared Function DocumentChunk (Optional spans As IEnumerable(Of ContentSpan) = Nothing, Optional source As String = Nothing) As DocumentChunk

Parameters

spans
IEnumerable<ContentSpan>

List of spans defining the chunk's position(s) in the markdown content.

source
String

Encoded source expression describing the visual bounding polygons of the chunk's content on the page. Derived from the union of layout objects (paragraphs, tables, figures) that compose the chunk.

Returns

A new DocumentChunk instance for mocking.

Applies to