DocumentAnalysisClient.ClassifyDocumentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classifies one or more documents using a document classifier built with custom documents.
public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.ClassifyDocumentOperation> ClassifyDocumentAsync (Azure.WaitUntil waitUntil, string classifierId, System.IO.Stream document, System.Threading.CancellationToken cancellationToken = default);
abstract member ClassifyDocumentAsync : Azure.WaitUntil * string * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.ClassifyDocumentOperation>
override this.ClassifyDocumentAsync : Azure.WaitUntil * string * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.ClassifyDocumentOperation>
Public Overridable Function ClassifyDocumentAsync (waitUntil As WaitUntil, classifierId As String, document As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClassifyDocumentOperation)
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.
- classifierId
- String
The ID of the document classifier to use.
- document
- Stream
The stream containing one or more documents to classify.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A ClassifyDocumentOperation to wait on this long-running operation. Its Value upon successful completion will contain documents classified from the input.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應