create_dataset
async
¶
create_dataset(
flywheel_arn: ComprehendFlywheelArn,
dataset_name: ComprehendArnName,
input_data_config: DatasetInputDataConfig,
*,
config_overrides: Optional[AsyncComprehendClientConfig] = 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.
Source code in docs_src/capo_comprehend/_services/async_comprehend.py
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 | |