DocumentParagraph Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. DocumentParagraph
- com.
Implements
public final class DocumentParagraph
implements JsonSerializable<DocumentParagraph>
Paragraph in a document, generally consisting of an contiguous sequence of lines with common alignment and spacing.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
| String |
getContent()
Get the content property: Paragraph text. |
|
Semantic |
getRole()
Get the role property: Semantic role of the paragraph. |
| String |
getSource()
Get the source property: Encoded source that identifies the position of the paragraph in the content. |
|
Content |
getSpan()
Get the span property: Span of the paragraph in the markdown 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:
getContent
public String getContent()
Get the content property: Paragraph text.
Returns:
getRole
public SemanticRole getRole()
Get the role property: Semantic role of the paragraph.
Returns:
getSource
public String getSource()
Get the source property: Encoded source that identifies the position of the paragraph in the content.
Returns:
getSpan
public ContentSpan getSpan()
Get the span property: Span of the paragraph in the markdown content.
Returns: