![otcbot[bot]](/assets/img/avatar_default.png)
Changes to ma_umn from doc-exports#1 This is an automatically created Pull Request for changes to ma_umn in opentelekomcloud-docs/doc-exports#1. Please do not edit it manually, since update to the original PR will overwrite local changes. Original patch file, as well as complete rst archive, can be found in the artifacts of the opentelekomcloud-docs/doc-exports#1 Reviewed-by: kucerakk <kucerakk@gmail.com>
70 KiB
- original_name
modelarts_23_0004.html
Creating a Dataset
To manage data using ModelArts, create a dataset. Then you can perform operations on the dataset, such as labeling data, importing data, and publishing the dataset.
Prerequisites
- Before using the data management function, you need permissions to access OBS. This function cannot be used if you are not authorized to access OBS. Before using the data management function, go to the Settings page and complete access authorization using an agency.
- You have created OBS buckets and folders for storing data. In addition, the OBS buckets and ModelArts are in the same region.
- You have uploaded data to be used to OBS.
Procedure
- Log in to the ModelArts management console. In the left navigation pane, choose Data Management > Datasets. The Datasets page is displayed.
- Click Create Dataset. On the Create Dataset page, create datasets of different types based on the data type and data labeling requirements.
Set the basic information, the name and description of the dataset.
Figure 1 Basic information about a dataset Select a labeling scene and type as required. For details about the types supported by ModelArts, see
Dataset Types <modelarts_23_0003__en-us_topic_0171496996_section51771731153811>
.Figure 2 Selecting a labeling scene and type Set the parameters based on the dataset type. For details, see the parameters of the following dataset types:
Images (Image Classification, Object Detection, and Image Segmentation) <modelarts_23_0004__en-us_topic_0170886809_section8625131415541>
Audio (Sound Classification, Speech Labeling, and Speech Paragraph Labeling) <modelarts_23_0004__en-us_topic_0170886809_section17893314546>
Text (Text Classification, Named Entity Recognition, and Text Triplet) <modelarts_23_0004__en-us_topic_0170886809_section16230452125420>
Table <modelarts_23_0004__en-us_topic_0170886809_section4103145619546>
Video <modelarts_23_0004__en-us_topic_0170886809_section1357212065510>
Other (Free Format) <modelarts_23_0004__en-us_topic_0170886809_section359415145517>
Click Create in the lower right corner of the page.
After the dataset is created, the dataset management page is displayed. You can perform the following operations on the dataset: label data, publish dataset versions, manage dataset versions, modify the dataset, import data, and delete the dataset. For details about the operations supported by different types of datasets, see .
Images (Image Classification, Object Detection, and Image Segmentation)

Parameter | Description |
---|---|
Input Dataset Path | Select the OBS path to the input dataset. |
Output Dataset Path | Select the OBS path to the output dataset. Note The output dataset path cannot be the same as the input dataset path or cannot be the subdirectory of the input dataset path. Select an empty directory as the Output Dataset Path. |
Label Set |
|
Team Labeling | Enable or disable team labeling. Image segmentation does not support team labeling. Therefore, this parameter is unavailable when you use image segmentation. After enabling team labeling, enter the name and type of the team labeling task, and select the labeling team and team members. For details about the parameter settings, see Before enabling team labeling, ensure that you have added a team and members on the Labeling Teams page. If no labeling team is available, click the link on the page to go to the Labeling Teams page, and add your team and members. For details, see After a dataset is created with team labeling enabled, you can view the Team Labeling mark in Labeling Type. |
Audio (Sound Classification, Speech Labeling, and Speech Paragraph Labeling)

Parameter | Description |
---|---|
Input Dataset Path | Select the OBS path to the input dataset. |
Output Dataset Path | Select the OBS path to the output dataset. Note The output dataset path cannot be the same as the input dataset path or cannot be the subdirectory of the input dataset path. Select an empty directory as the Output Dataset Path. |
Label Set (Sound Classification) | Set labels only for datasets of the sound classification type.
|
Label Management (Speech Paragraph Labeling) | Only datasets for speech paragraph labeling support multiple labels.
|
Speech Labeling (Speech Paragraph Labeling) | Only datasets for speech paragraph labeling support speech labeling. By default, speech labeling is disabled. If this function is enabled, you can label speech content. |
Team Labeling | Only datasets of speech paragraph labeling support team labeling. After enabling team labeling, set the name and type of the team labeling task, and select the team and team members. For details about the parameter settings, see Before enabling team labeling, ensure that you have added a team and members on the Labeling Teams page. If no labeling team is available, click the link on the page to go to the Labeling Teams page, and add your team and members. For details, see After a dataset is created with team labeling enabled, you can view the Team Labeling mark in Labeling Type. |
Text (Text Classification, Named Entity Recognition, and Text Triplet)

Parameter | Description |
---|---|
Input Dataset Path | Select the OBS path to the input dataset. Note Labeled text classification data can be identified only when you import data. When creating a dataset, set an empty OBS directory. After the dataset is created, import the labeled data into it. For details about the format of the data to be imported, see |
Output Dataset Path | Select the OBS path to the output dataset. Note The output dataset path cannot be the same as the input dataset path or cannot be the subdirectory of the input dataset path. Select an empty directory as the Output Dataset Path. |
Label Set (for text classification and named entity recognition) |
|
Label Set (for text triplet) | For datasets of the text triplet type, set entity labels and relationship labels.
|
Team Labeling | Enable or disable team labeling. After enabling team labeling, enter the name and type of the team labeling task, and select the labeling team and team members. For details about the parameter settings, see Before enabling team labeling, ensure that you have added a team and members on the Labeling Teams page. If no labeling team is available, click the link on the page to go to the Labeling Teams page, and add your team and members. For details, see After a dataset is created with team labeling enabled, you can view the Team Labeling mark in Labeling Type. |
Table
Note
When using a CSV file, pay attention to the following:
- When the data type is set to String, the data in the double quotation marks is regarded as one record by default. Ensure that the double quotation marks in the same row are closed. Otherwise, the data will be too large to display.
- If the number of columns in a row of the CSV file is different from that defined in the schema, the row will be ignored.
Parameter | Description |
---|---|
Storage Path | Select the OBS path for storing table data. The data imported from the data source is stored in this path. The path cannot be the same as or a subdirectory of the file path in the OBS data source. After a table dataset is created, the following four directories are automatically generated in the storage path:
|
Import | If you have stored table data on other cloud services, you can enable this function to import data stored on OBS, DLI, or MRS. |
Data Source (OBS) |
|
Schema | Names and types of table columns, which must be the same as those of the imported data. Set the column name based on the imported data and select the column type. For details about the supported types, see Click Add Schema to add a new record. When creating a dataset, you must specify a schema. Once created, the schema cannot be modified. When data is imported from OBS, the schema of the CSV file in the file path is automatically obtained. If the schemas of multiple CSV files are inconsistent, an error is reported. |
Type | Description | Storage Space | Range |
---|---|---|---|
String | String | ||
Short | Signed integer | 2 bytes | -32768 to 32767 |
Int | Signed integer | 4 bytes | –2147483648 to 2147483647 |
Long | Signed integer | 8 bytes | –9223372036854775808 to 9223372036854775807 |
Double | Double-precision floating point | 8 bytes | |
Float | Single-precision floating point | 4 bytes | |
Byte | Signed integer | 1 byte | -128 to 127 |
Date | Date type in the format of yyyy-MM-dd, for example, 2014-05-29 | ||
Timestamp | Timestamp that represents date and time. Format: yyyy-MM-dd HH:mm:ss | ||
Boolean | Boolean | 1 byte | TRUE or FALSE |
Video

Parameter | Description |
---|---|
Input Dataset Path | Select the OBS path to the input dataset. |
Output Dataset Path | Select the OBS path to the output dataset. Note The output dataset path cannot be the same as the input dataset path or cannot be the subdirectory of the input dataset path. Select an empty directory as the Output Dataset Path. |
Label Set |
|
Other (Free Format)

Parameter | Description |
---|---|
Input Dataset Path | Select the OBS path to the input dataset. |
Output Dataset Path | Select the OBS path to the output dataset. Note The output dataset path cannot be the same as the input dataset path or cannot be the subdirectory of the input dataset path. Select an empty directory as the Output Dataset Path. |