/AWS1/IF_CPD=>CREATEDATASET()¶
About CreateDataset¶
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.
Method Signature¶
METHODS /AWS1/IF_CPD~CREATEDATASET
IMPORTING
!IV_FLYWHEELARN TYPE /AWS1/CPDCOMPREHENDFLYWHEELARN OPTIONAL
!IV_DATASETNAME TYPE /AWS1/CPDCOMPREHENDARNNAME OPTIONAL
!IV_DATASETTYPE TYPE /AWS1/CPDDATASETTYPE OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CPDDESCRIPTION OPTIONAL
!IO_INPUTDATACONFIG TYPE REF TO /AWS1/CL_CPDDSINPUTDATACONFIG OPTIONAL
!IV_CLIENTREQUESTTOKEN TYPE /AWS1/CPDCLIENTREQTOKENSTRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CPDTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cpdcreatedatasetrsp
RAISING
/AWS1/CX_CPDINTERNALSERVEREX
/AWS1/CX_CPDINVALIDREQUESTEX
/AWS1/CX_CPDRESOURCEINUSEEX
/AWS1/CX_CPDRESRCLIMITEXCDEX
/AWS1/CX_CPDRESOURCENOTFOUNDEX
/AWS1/CX_CPDTOOMANYREQUESTSEX
/AWS1/CX_CPDTOOMANYTAGSEX
/AWS1/CX_CPDCLIENTEXC
/AWS1/CX_CPDSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_flywheelarn TYPE /AWS1/CPDCOMPREHENDFLYWHEELARN /AWS1/CPDCOMPREHENDFLYWHEELARN¶
The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data.
iv_datasetname TYPE /AWS1/CPDCOMPREHENDARNNAME /AWS1/CPDCOMPREHENDARNNAME¶
Name of the dataset.
io_inputdataconfig TYPE REF TO /AWS1/CL_CPDDSINPUTDATACONFIG /AWS1/CL_CPDDSINPUTDATACONFIG¶
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.
Optional arguments:¶
iv_datasettype TYPE /AWS1/CPDDATASETTYPE /AWS1/CPDDATASETTYPE¶
The dataset type. You can specify that the data in a dataset is for training the model or for testing the model.
iv_description TYPE /AWS1/CPDDESCRIPTION /AWS1/CPDDESCRIPTION¶
Description of the dataset.
iv_clientrequesttoken TYPE /AWS1/CPDCLIENTREQTOKENSTRING /AWS1/CPDCLIENTREQTOKENSTRING¶
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
it_tags TYPE /AWS1/CL_CPDTAG=>TT_TAGLIST TT_TAGLIST¶
Tags for the dataset.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cpdcreatedatasetrsp /AWS1/CL_CPDCREATEDATASETRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->createdataset(
io_inputdataconfig = new /aws1/cl_cpddsinputdataconfig(
io_docclassifierinputdatacfg = new /aws1/cl_cpddsdocclifierinpd00(
iv_labeldelimiter = |string|
iv_s3uri = |string|
)
io_entrecognizerinputdatacfg = new /aws1/cl_cpddsentrecognizeri00(
io_annotations = new /aws1/cl_cpddsentrecognizera00( |string| )
io_documents = new /aws1/cl_cpddsentrecognizerd00(
iv_inputformat = |string|
iv_s3uri = |string|
)
io_entitylist = new /aws1/cl_cpddsentrecognizere00( |string| )
)
it_augmentedmanifests = VALUE /aws1/cl_cpddsaugmentedmanif00=>tt_dsaugmentedmanifestslist(
(
new /aws1/cl_cpddsaugmentedmanif00(
it_attributenames = VALUE /aws1/cl_cpdattrnameslist_w=>tt_attributenameslist(
( new /aws1/cl_cpdattrnameslist_w( |string| ) )
)
iv_annotationdatas3uri = |string|
iv_documenttype = |string|
iv_s3uri = |string|
iv_sourcedocumentss3uri = |string|
)
)
)
iv_dataformat = |string|
)
it_tags = VALUE /aws1/cl_cpdtag=>tt_taglist(
(
new /aws1/cl_cpdtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_clientrequesttoken = |string|
iv_datasetname = |string|
iv_datasettype = |string|
iv_description = |string|
iv_flywheelarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_comprehenddatasetarn = lo_result->get_datasetarn( ).
ENDIF.