This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::Comprehend::EntityRecognizer EntityRecognizerInputDataConfig
Specifies the format and location of the input data.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Annotations" :EntityRecognizerAnnotations, "AugmentedManifests" :[ AugmentedManifestsListItem, ... ], "DataFormat" :String, "Documents" :EntityRecognizerDocuments, "EntityList" :EntityRecognizerEntityList, "EntityTypes" :[ EntityTypesListItem, ... ]}
YAML
Annotations:EntityRecognizerAnnotationsAugmentedManifests:- AugmentedManifestsListItemDataFormat:StringDocuments:EntityRecognizerDocumentsEntityList:EntityRecognizerEntityListEntityTypes:- EntityTypesListItem
Properties
Annotations-
The S3 location of the CSV file that annotates your training documents.
Required: No
Type: EntityRecognizerAnnotations
Update requires: Replacement
AugmentedManifests-
A list of augmented manifest files that provide training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.
This parameter is required if you set
DataFormattoAUGMENTED_MANIFEST.Required: No
Type: Array of AugmentedManifestsListItem
Update requires: Replacement
DataFormat-
The format of your training data:
-
COMPREHEND_CSV: A CSV file that supplements your training documents. The CSV file contains information about the custom entities that your trained model will detect. The required format of the file depends on whether you are providing annotations or an entity list.If you use this value, you must provide your CSV file by using either the
AnnotationsorEntityListparameters. You must provide your training documents by using theDocumentsparameter. -
AUGMENTED_MANIFEST: A labeled dataset that is produced by Amazon SageMaker Ground Truth. This file is in JSON lines format. Each line is a complete JSON object that contains a training document and its labels. Each label annotates a named entity in the training document.If you use this value, you must provide the
AugmentedManifestsparameter in your request.
If you don't specify a value, Amazon Comprehend uses
COMPREHEND_CSVas the default.Required: No
Type: String
Allowed values:
COMPREHEND_CSV | AUGMENTED_MANIFESTUpdate requires: Replacement
-
Documents-
The S3 location of the folder that contains the training documents for your custom entity recognizer.
This parameter is required if you set
DataFormattoCOMPREHEND_CSV.Required: No
Type: EntityRecognizerDocuments
Update requires: Replacement
EntityList-
The S3 location of the CSV file that has the entity list for your custom entity recognizer.
Required: No
Type: EntityRecognizerEntityList
Update requires: Replacement
EntityTypes-
The entity types in the labeled training data that Amazon Comprehend uses to train the custom entity recognizer. Any entity types that you don't specify are ignored.
A maximum of 25 entity types can be used at one time to train an entity recognizer. Entity types must not contain the following invalid characters: \n (line break), \\n (escaped line break), \r (carriage return), \\r (escaped carriage return), \t (tab), \\t (escaped tab), space, and , (comma).
Required: Yes
Type: Array of EntityTypesListItem
Update requires: Replacement