Smaws_Client_Comprehend.CreateDocumentClassifierCreates 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `KmsKeyValidationException of Types.kms_key_validation_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceLimitExceededException of Types.resource_limit_exceeded_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `TooManyTagsException of Types.too_many_tags_exception
| `UnsupportedLanguageException of Types.unsupported_language_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_document_classifier_request ->
(Types.create_document_classifier_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `KmsKeyValidationException of Types.kms_key_validation_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceLimitExceededException of
Types.resource_limit_exceeded_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `TooManyTagsException of Types.too_many_tags_exception
| `UnsupportedLanguageException of Types.unsupported_language_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_document_classifier_request ->
(Types.create_document_classifier_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `KmsKeyValidationException of Types.kms_key_validation_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceLimitExceededException of
Types.resource_limit_exceeded_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `TooManyTagsException of Types.too_many_tags_exception
| `UnsupportedLanguageException of Types.unsupported_language_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result