DocumentTypeDetails Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. DocumentTypeDetails
- com.
Implements
public final class DocumentTypeDetails
implements JsonSerializable<DocumentTypeDetails>
Document type info.
Constructor Summary
Constructor | Description |
---|---|
DocumentTypeDetails() |
Creates an instance of Document |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
Document |
getBuildMode()
Get the build |
Double |
getConfidenceThreshold()
Get the confidence |
String |
getDescription()
Get the description property: Document model description. |
List<Document |
getFeatures()
Get the features property: List of optional analysis features. |
Map<String,Double> |
getFieldConfidence()
Get the field |
Map<String,Document |
getFieldSchema()
Get the field |
Integer |
getMaxDocumentsToAnalyze()
Get the max |
String |
getModelId()
Get the model |
List<String> |
getQueryFields()
Get the query |
Document |
setBuildMode(DocumentBuildMode buildMode)
Set the build |
Document |
setConfidenceThreshold(Double confidenceThreshold)
Set the confidence |
Document |
setDescription(String description)
Set the description property: Document model description. |
Document |
setFeatures(List<DocumentAnalysisFeature> features)
Set the features property: List of optional analysis features. |
Document |
setFieldConfidence(Map<String,Double> fieldConfidence)
Set the field |
Document |
setFieldSchema(Map<String,DocumentFieldSchema> fieldSchema)
Set the field |
Document |
setMaxDocumentsToAnalyze(Integer maxDocumentsToAnalyze)
Set the max |
Document |
setModelId(String modelId)
Set the model |
Document |
setQueryFields(List<String> queryFields)
Set the query |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
DocumentTypeDetails
public DocumentTypeDetails()
Creates an instance of DocumentTypeDetails class.
Method Details
fromJson
public static DocumentTypeDetails fromJson(JsonReader jsonReader)
Reads an instance of DocumentTypeDetails from the JsonReader.
Parameters:
Returns:
Throws:
getBuildMode
public DocumentBuildMode getBuildMode()
Get the buildMode property: Custom document model build mode.
Returns:
getConfidenceThreshold
public Double getConfidenceThreshold()
Get the confidenceThreshold property: Only perform analysis if docType confidence is above threshold.
Returns:
getDescription
public String getDescription()
Get the description property: Document model description.
Returns:
getFeatures
public List
Get the features property: List of optional analysis features.
Returns:
getFieldConfidence
public Map
Get the fieldConfidence property: Estimated confidence for each field.
Returns:
getFieldSchema
public Map
Get the fieldSchema property: Description of the document semantic schema using a JSON Schema style syntax.
Returns:
getMaxDocumentsToAnalyze
public Integer getMaxDocumentsToAnalyze()
Get the maxDocumentsToAnalyze property: Maximum number of documents of specified type to analyze. Default=all.
Returns:
getModelId
public String getModelId()
Get the modelId property: Document model to use for analyzing documents with specified type.
Returns:
getQueryFields
public List
Get the queryFields property: List of additional fields to extract. Ex. "NumberOfGuests,StoreNumber".
Returns:
setBuildMode
public DocumentTypeDetails setBuildMode(DocumentBuildMode buildMode)
Set the buildMode property: Custom document model build mode.
Parameters:
Returns:
setConfidenceThreshold
public DocumentTypeDetails setConfidenceThreshold(Double confidenceThreshold)
Set the confidenceThreshold property: Only perform analysis if docType confidence is above threshold.
Parameters:
Returns:
setDescription
public DocumentTypeDetails setDescription(String description)
Set the description property: Document model description.
Parameters:
Returns:
setFeatures
public DocumentTypeDetails setFeatures(List
Set the features property: List of optional analysis features.
Parameters:
Returns:
setFieldConfidence
public DocumentTypeDetails setFieldConfidence(Map
Set the fieldConfidence property: Estimated confidence for each field.
Parameters:
Returns:
setFieldSchema
public DocumentTypeDetails setFieldSchema(Map
Set the fieldSchema property: Description of the document semantic schema using a JSON Schema style syntax.
Parameters:
Returns:
setMaxDocumentsToAnalyze
public DocumentTypeDetails setMaxDocumentsToAnalyze(Integer maxDocumentsToAnalyze)
Set the maxDocumentsToAnalyze property: Maximum number of documents of specified type to analyze. Default=all.
Parameters:
Returns:
setModelId
public DocumentTypeDetails setModelId(String modelId)
Set the modelId property: Document model to use for analyzing documents with specified type.
Parameters:
Returns:
setQueryFields
public DocumentTypeDetails setQueryFields(List
Set the queryFields property: List of additional fields to extract. Ex. "NumberOfGuests,StoreNumber".
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java