Class AnalyzedDocument
java.lang.Object
com.azure.ai.documentintelligence.models.AnalyzedDocument
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AnalyzedDocument>
public final class AnalyzedDocument
extends Object
implements com.azure.json.JsonSerializable<AnalyzedDocument>
An object describing the location and semantic content of a document.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnalyzedDocumentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AnalyzedDocument from the JsonReader.Get the boundingRegions property: Bounding regions covering the document.doubleGet the confidence property: Confidence of correctly extracting the document.Get the documentType property: Document type.Get the fields property: Dictionary of named field values.getSpans()Get the spans property: Location of the document in the reading order concatenated content.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getDocumentType
Get the documentType property: Document type.- Returns:
- the documentType value.
-
getBoundingRegions
Get the boundingRegions property: Bounding regions covering the document.- Returns:
- the boundingRegions value.
-
getSpans
Get the spans property: Location of the document in the reading order concatenated content.- Returns:
- the spans value.
-
getFields
Get the fields property: Dictionary of named field values.- Returns:
- the fields value.
-
getConfidence
public double getConfidence()Get the confidence property: Confidence of correctly extracting the document.- Returns:
- the confidence value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AnalyzedDocument>- Throws:
IOException
-
fromJson
Reads an instance of AnalyzedDocument from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AnalyzedDocument if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AnalyzedDocument.
-