AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that are labeled with the categories that you want to use. For more information, see Training classifier models in the Comprehend Developer Guide.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginCreateDocumentClassifier and EndCreateDocumentClassifier.
Namespace: Amazon.Comprehend
Assembly: AWSSDK.Comprehend.dll
Version: 3.x.y.z
public abstract Task<CreateDocumentClassifierResponse> CreateDocumentClassifierAsync( CreateDocumentClassifierRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the CreateDocumentClassifier service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
InternalServerException | An internal server error occurred. Retry your request. |
InvalidRequestException | The request is invalid. |
KmsKeyValidationException | The KMS customer managed key (CMK) entered cannot be validated. Verify the key and re-enter it. |
ResourceInUseException | The specified resource name is already in use. Use a different name and try your request again. |
ResourceLimitExceededException | The maximum number of resources per account has been exceeded. Review the resources, and then try your request again. |
TooManyRequestsException | The number of requests exceeds the limit. Resubmit your request later. |
TooManyTagsException | The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request. |
UnsupportedLanguageException | Amazon Comprehend can't process the language of the input text. For a list of supported languages, Supported languages in the Comprehend Developer Guide. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5