Share via


DocumentModelAdministrationClient.BuildDocumentClassifier Method

Definition

Builds a document classifier from training data stored in an Azure Blob Storage container.

public virtual Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentClassifierOperation BuildDocumentClassifier (Azure.WaitUntil waitUntil, System.Collections.Generic.IDictionary<string,Azure.AI.FormRecognizer.DocumentAnalysis.ClassifierDocumentTypeDetails> documentTypes, string classifierId = default, string description = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BuildDocumentClassifier : Azure.WaitUntil * System.Collections.Generic.IDictionary<string, Azure.AI.FormRecognizer.DocumentAnalysis.ClassifierDocumentTypeDetails> * string * string * System.Threading.CancellationToken -> Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentClassifierOperation
override this.BuildDocumentClassifier : Azure.WaitUntil * System.Collections.Generic.IDictionary<string, Azure.AI.FormRecognizer.DocumentAnalysis.ClassifierDocumentTypeDetails> * string * string * System.Threading.CancellationToken -> Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentClassifierOperation
Public Overridable Function BuildDocumentClassifier (waitUntil As WaitUntil, documentTypes As IDictionary(Of String, ClassifierDocumentTypeDetails), Optional classifierId As String = Nothing, Optional description As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As BuildDocumentClassifierOperation

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation.

documentTypes
IDictionary<String,ClassifierDocumentTypeDetails>

A mapping to the training data of each document type supported by the classifier. Keys are the names of the document types, and values are used to locate the training files stored in an Azure Blob Storage container.

classifierId
String

A unique ID for your classifier. If not specified, a classifier ID will be created for you.

description
String

An optional classifier description.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A BuildDocumentClassifierOperation to wait on this long-running operation. Its Value upon successful completion will contain meta-data about the created document classifier.

Remarks

This method is only available for V2023_07_31 and newer.

Applies to