Condividi tramite


DocumentAnalysisModelFactory.DocumentParagraph Method

Definition

Initializes a new instance of DocumentParagraph.

public static Azure.AI.FormRecognizer.DocumentAnalysis.DocumentParagraph DocumentParagraph (Azure.AI.FormRecognizer.DocumentAnalysis.ParagraphRole? role = default, string content = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.BoundingRegion> boundingRegions = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSpan> spans = default);
static member DocumentParagraph : Nullable<Azure.AI.FormRecognizer.DocumentAnalysis.ParagraphRole> * string * seq<Azure.AI.FormRecognizer.DocumentAnalysis.BoundingRegion> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSpan> -> Azure.AI.FormRecognizer.DocumentAnalysis.DocumentParagraph
Public Shared Function DocumentParagraph (Optional role As Nullable(Of ParagraphRole) = Nothing, Optional content As String = Nothing, Optional boundingRegions As IEnumerable(Of BoundingRegion) = Nothing, Optional spans As IEnumerable(Of DocumentSpan) = Nothing) As DocumentParagraph

Parameters

role
Nullable<ParagraphRole>

Semantic role of the paragraph.

content
String

Concatenated content of the paragraph in reading order.

boundingRegions
IEnumerable<BoundingRegion>

Bounding regions covering the paragraph.

spans
IEnumerable<DocumentSpan>

Location of the paragraph in the reading order concatenated content.

Returns

A new DocumentParagraph instance for mocking.

Applies to