create_dataset
¶
create_dataset(
flywheel_arn: ComprehendFlywheelArn,
dataset_name: ComprehendArnName,
input_data_config: DatasetInputDataConfig,
*,
config_overrides: Optional[ComprehendClientConfig] = None,
dataset_type: Optional[DatasetType] = None,
description: Optional[Description] = None,
client_request_token: Optional[ClientRequestTokenString] = None,
tags: Optional[TagList] = None,
) -> CreateDatasetResponse
Creates a dataset to upload training or test data for a model associated with a flywheel. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
Parameters:
-
flywheel_arn(ComprehendFlywheelArn) –The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data.
-
dataset_name(ComprehendArnName) –Name of the dataset.
-
dataset_type(Optional[DatasetType], default:None) –The dataset type. You can specify that the data in a dataset is for training the model or for testing the model.
-
description(Optional[Description], default:None) –Description of the dataset.
-
input_data_config(DatasetInputDataConfig) –Information about the input data configuration. The type of input data varies based on the format of the input and whether the data is for a classifier model or an entity recognition model.
-
client_request_token(Optional[ClientRequestTokenString], default:None) –A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
-
tags(Optional[TagList], default:None) –Tags for the dataset.
Raises:
-
InternalServerException–An internal server error occurred. Retry your request.
-
InvalidRequestException–The request is invalid.
-
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.
-
ResourceNotFoundException–The specified resource ARN was not found. Check the ARN and 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.
-
UnknownServiceError–The service returned an error code this client does not model.