Interface EntityRecognizerInputDataConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EntityRecognizerInputDataConfig.Builder,,EntityRecognizerInputDataConfig> SdkBuilder<EntityRecognizerInputDataConfig.Builder,,EntityRecognizerInputDataConfig> SdkPojo
- Enclosing class:
EntityRecognizerInputDataConfig
-
Method Summary
Modifier and TypeMethodDescriptionannotations(Consumer<EntityRecognizerAnnotations.Builder> annotations) The S3 location of the CSV file that annotates your training documents.annotations(EntityRecognizerAnnotations annotations) The S3 location of the CSV file that annotates your training documents.augmentedManifests(Collection<AugmentedManifestsListItem> augmentedManifests) A list of augmented manifest files that provide training data for your custom model.augmentedManifests(Consumer<AugmentedManifestsListItem.Builder>... augmentedManifests) A list of augmented manifest files that provide training data for your custom model.augmentedManifests(AugmentedManifestsListItem... augmentedManifests) A list of augmented manifest files that provide training data for your custom model.dataFormat(String dataFormat) The format of your training data:dataFormat(EntityRecognizerDataFormat dataFormat) The format of your training data:documents(Consumer<EntityRecognizerDocuments.Builder> documents) The S3 location of the folder that contains the training documents for your custom entity recognizer.documents(EntityRecognizerDocuments documents) The S3 location of the folder that contains the training documents for your custom entity recognizer.entityList(Consumer<EntityRecognizerEntityList.Builder> entityList) The S3 location of the CSV file that has the entity list for your custom entity recognizer.entityList(EntityRecognizerEntityList entityList) The S3 location of the CSV file that has the entity list for your custom entity recognizer.entityTypes(Collection<EntityTypesListItem> entityTypes) The entity types in the labeled training data that Amazon Comprehend uses to train the custom entity recognizer.entityTypes(Consumer<EntityTypesListItem.Builder>... entityTypes) The entity types in the labeled training data that Amazon Comprehend uses to train the custom entity recognizer.entityTypes(EntityTypesListItem... entityTypes) The entity types in the labeled training data that Amazon Comprehend uses to train the custom entity recognizer.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.- Parameters:
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.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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.- Parameters:
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.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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).
- Parameters:
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).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).
- Parameters:
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).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityTypes
EntityRecognizerInputDataConfig.Builder entityTypes(Consumer<EntityTypesListItem.Builder>... 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).
This is a convenience method that creates an instance of theEntityTypesListItem.Builderavoiding the need to create one manually viaEntityTypesListItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentityTypes(List<EntityTypesListItem>).- Parameters:
entityTypes- a consumer that will call methods onEntityTypesListItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
default EntityRecognizerInputDataConfig.Builder documents(Consumer<EntityRecognizerDocuments.Builder> documents) The S3 location of the folder that contains the training documents for your custom entity recognizer.
This parameter is required if you set
This is a convenience method that creates an instance of theDataFormattoCOMPREHEND_CSV.EntityRecognizerDocuments.Builderavoiding the need to create one manually viaEntityRecognizerDocuments.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocuments(EntityRecognizerDocuments).- Parameters:
documents- a consumer that will call methods onEntityRecognizerDocuments.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
annotations
The S3 location of the CSV file that annotates your training documents.
- Parameters:
annotations- The S3 location of the CSV file that annotates your training documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
annotations
default EntityRecognizerInputDataConfig.Builder annotations(Consumer<EntityRecognizerAnnotations.Builder> annotations) The S3 location of the CSV file that annotates your training documents.
This is a convenience method that creates an instance of theEntityRecognizerAnnotations.Builderavoiding the need to create one manually viaEntityRecognizerAnnotations.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toannotations(EntityRecognizerAnnotations).- Parameters:
annotations- a consumer that will call methods onEntityRecognizerAnnotations.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
entityList
The S3 location of the CSV file that has the entity list for your custom entity recognizer.
- Parameters:
entityList- The S3 location of the CSV file that has the entity list for your custom entity recognizer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityList
default EntityRecognizerInputDataConfig.Builder entityList(Consumer<EntityRecognizerEntityList.Builder> entityList) The S3 location of the CSV file that has the entity list for your custom entity recognizer.
This is a convenience method that creates an instance of theEntityRecognizerEntityList.Builderavoiding the need to create one manually viaEntityRecognizerEntityList.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentityList(EntityRecognizerEntityList).- Parameters:
entityList- a consumer that will call methods onEntityRecognizerEntityList.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
augmentedManifests
EntityRecognizerInputDataConfig.Builder augmentedManifests(Collection<AugmentedManifestsListItem> 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
augmentedManifests
EntityRecognizerInputDataConfig.Builder augmentedManifests(AugmentedManifestsListItem... 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
augmentedManifests
EntityRecognizerInputDataConfig.Builder augmentedManifests(Consumer<AugmentedManifestsListItem.Builder>... 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
This is a convenience method that creates an instance of theDataFormattoAUGMENTED_MANIFEST.AugmentedManifestsListItem.Builderavoiding the need to create one manually viaAugmentedManifestsListItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaugmentedManifests(List<AugmentedManifestsListItem>).- Parameters:
augmentedManifests- a consumer that will call methods onAugmentedManifestsListItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-