DocumentClassifierProperties
¶
Source code in docs_src/capo_comprehend/types/document_classifier_properties.py
classifier_metadata
instance-attribute
¶
classifier_metadata: NotRequired[ClassifierMetadata]
Information about the document classifier, including the number of documents used for training the classifier, the number of documents used for test the classifier, and an accuracy rating.
data_access_role_arn
instance-attribute
¶
data_access_role_arn: NotRequired[IamRoleArn]
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
document_classifier_arn
instance-attribute
¶
document_classifier_arn: NotRequired[DocumentClassifierArn]
The Amazon Resource Name (ARN) that identifies the document classifier.
end_time
instance-attribute
¶
end_time: NotRequired[Timestamp]
The time that training the document classifier completed.
flywheel_arn
instance-attribute
¶
flywheel_arn: NotRequired[ComprehendFlywheelArn]
The Amazon Resource Number (ARN) of the flywheel
input_data_config
instance-attribute
¶
input_data_config: NotRequired[DocumentClassifierInputDataConfig]
The input data configuration that you supplied when you created the document classifier for training.
language_code
instance-attribute
¶
language_code: NotRequired[LanguageCode]
The language code for the language of the documents that the classifier was trained on.
message
instance-attribute
¶
message: NotRequired[AnyLengthString]
Additional information about the status of the classifier.
mode
instance-attribute
¶
mode: NotRequired[DocumentClassifierMode]
Indicates the mode in which the specific classifier was trained. This also indicates the format of input documents and the format of the confusion matrix. Each classifier can only be trained in one mode and this cannot be changed once the classifier is trained.
model_kms_key_id
instance-attribute
¶
model_kms_key_id: NotRequired[KmsKeyId]
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab" -
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
output_data_config
instance-attribute
¶
output_data_config: NotRequired[DocumentClassifierOutputDataConfig]
Provides output results configuration parameters for custom classifier jobs.
source_model_arn
instance-attribute
¶
source_model_arn: NotRequired[DocumentClassifierArn]
The Amazon Resource Name (ARN) of the source model. This model was imported from a different Amazon Web Services account to create the document classifier model in your Amazon Web Services account.
status
instance-attribute
¶
status: NotRequired[ModelStatus]
The status of the document classifier. If the status is TRAINED the classifier is ready to use. If the status is TRAINED_WITH_WARNINGS the classifier training succeeded, but you should review the warnings returned in the CreateDocumentClassifier response.
If the status is FAILED you can see additional information about why the classifier wasn't trained in the Message field.
submit_time
instance-attribute
¶
submit_time: NotRequired[Timestamp]
The time that the document classifier was submitted for training.
training_end_time
instance-attribute
¶
training_end_time: NotRequired[Timestamp]
The time that training of the document classifier was completed. Indicates the time when the training completes on documentation classifiers. You are billed for the time interval between this time and the value of TrainingStartTime.
training_start_time
instance-attribute
¶
training_start_time: NotRequired[Timestamp]
Indicates the time when the training starts on documentation classifiers. You are billed for the time interval between this time and the value of TrainingEndTime.
version_name
instance-attribute
¶
version_name: NotRequired[VersionName]
The version name that you assigned to the document classifier.
volume_kms_key_id
instance-attribute
¶
volume_kms_key_id: NotRequired[KmsKeyId]
ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:
-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab" -
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
vpc_config
instance-attribute
¶
vpc_config: NotRequired[VpcConfig]
Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.