DocumentParagraph Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. DocumentParagraph
- com.
Implements
public final class DocumentParagraph
implements JsonSerializable<DocumentParagraph>
A paragraph object consisting with contiguous lines generally with common alignment and spacing.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
List<Bounding |
getBoundingRegions()
Get the bounding |
String |
getContent()
Get the content property: Concatenated content of the paragraph in reading order. |
Paragraph |
getRole()
Get the role property: Semantic role of the paragraph. |
List<Document |
getSpans()
Get the spans property: Location of the paragraph in the reading order concatenated content. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentParagraph fromJson(JsonReader jsonReader)
Reads an instance of DocumentParagraph from the JsonReader.
Parameters:
Returns:
Throws:
getBoundingRegions
public List
Get the boundingRegions property: Bounding regions covering the paragraph.
Returns:
getContent
public String getContent()
Get the content property: Concatenated content of the paragraph in reading order.
Returns:
getRole
public ParagraphRole getRole()
Get the role property: Semantic role of the paragraph.
Returns:
getSpans
public List
Get the spans property: Location of the paragraph in the reading order concatenated content.
Returns:
toJson
Applies to
Azure SDK for Java