你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DocumentAnalysisModelFactory.DocumentParagraph 方法

定义

初始化 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

参数

role
Nullable<ParagraphRole>

段落的语义角色。

content
String

按阅读顺序连接段落的内容。

boundingRegions
IEnumerable<BoundingRegion>

覆盖段落的边界区域。

spans
IEnumerable<DocumentSpan>

段落在阅读顺序中串联内容的位置。

返回

用于模拟的新 DocumentParagraph 实例。

适用于