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.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateDocumentClassifierAsync.
Namespace: Amazon.Comprehend
Assembly: AWSSDK.Comprehend.dll
Version: 3.x.y.z
public abstract CreateDocumentClassifierResponse CreateDocumentClassifier( CreateDocumentClassifierRequest request )
Container for the necessary parameters to execute the CreateDocumentClassifier service method.
| 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 Framework:
Supported in: 4.7.2 and newer