BuildDocumentClassifierOptions Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. BuildDocumentClassifierOptions
- com.
Implements
public final class BuildDocumentClassifierOptions
implements JsonSerializable<BuildDocumentClassifierOptions>
Request body to build a new custom document classifier.
Constructor Summary
| Constructor | Description |
|---|---|
| BuildDocumentClassifierOptions(String classifierId, Map<String,ClassifierDocumentTypeDetails> documentTypes) |
Creates an instance of Build |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Build |
fromJson(JsonReader jsonReader)
Reads an instance of Build |
| String |
getBaseClassifierId()
Get the base |
| String |
getClassifierId()
Get the classifier |
| String |
getDescription()
Get the description property: Document classifier description. |
|
Map<String,Classifier |
getDocumentTypes()
Get the document |
| Boolean |
isAllowOverwrite()
Get the allow |
|
Build |
setAllowOverwrite(Boolean allowOverwrite)
Set the allow |
|
Build |
setBaseClassifierId(String baseClassifierId)
Set the base |
|
Build |
setDescription(String description)
Set the description property: Document classifier description. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BuildDocumentClassifierOptions
public BuildDocumentClassifierOptions(String classifierId, Map<String,ClassifierDocumentTypeDetails> documentTypes)
Creates an instance of BuildDocumentClassifierOptions class.
Parameters:
Method Details
fromJson
public static BuildDocumentClassifierOptions fromJson(JsonReader jsonReader)
Reads an instance of BuildDocumentClassifierOptions from the JsonReader.
Parameters:
Returns:
Throws:
getBaseClassifierId
public String getBaseClassifierId()
Get the baseClassifierId property: Base classifierId on top of which to train the classifier.
Returns:
getClassifierId
public String getClassifierId()
Get the classifierId property: Unique document classifier name.
Returns:
getDescription
public String getDescription()
Get the description property: Document classifier description.
Returns:
getDocumentTypes
public Map<String,ClassifierDocumentTypeDetails> getDocumentTypes()
Get the documentTypes property: List of document types to classify against.
Returns:
isAllowOverwrite
public Boolean isAllowOverwrite()
Get the allowOverwrite property: Allow overwriting an existing classifier with the same name.
Returns:
setAllowOverwrite
public BuildDocumentClassifierOptions setAllowOverwrite(Boolean allowOverwrite)
Set the allowOverwrite property: Allow overwriting an existing classifier with the same name.
Parameters:
Returns:
setBaseClassifierId
public BuildDocumentClassifierOptions setBaseClassifierId(String baseClassifierId)
Set the baseClassifierId property: Base classifierId on top of which to train the classifier.
Parameters:
Returns:
setDescription
public BuildDocumentClassifierOptions setDescription(String description)
Set the description property: Document classifier description.
Parameters:
Returns: