Selecting Data
Select data and create a training dataset for subsequent model training.
Prerequisites
- You have obtained permissions to access OBS. For details on how to obtain OBS permissions, see Obtaining the Access Key and Configuring ModelArts.
- You have created an OBS bucket and folder for storing data. The OBS bucket should be in the same region as ModelArts Pro (Currently, only CN North-Beijing4 is supported). For details, see Creating an OBS Bucket.
- You have uploaded required data to OBS. For details, see How Do I Upload Data to OBS.
- You have created an application using the general text classification workflow on the NLP Suite console. For details, see Creating an Application.
Requirements on Datasets
- Unlabeled data
- Labeled data
The labeled objects and labels for text classification are in the same text file. You can specify a separator to separate the labeled objects and labels, as well as multiple labeled objects.
For example, the following shows an example text file. The Tab key is used to separate the labeled object from the label.It touches good and responds quickly. I don't know how it performs in the future. positive Three months ago, I bought a very good phone and replaced my old one with it. It can operate longer between charges. positive Why does my phone heat up if I charge it for a while? The volume button stuck after being pressed down. negative It's a gift for Father's Day. The delivery is fast and I received it in 24 hours. I like the earphones because the bass sounds feel good and they would not fall off. positive
Accessing the Application Development Page
- Method 1: Accessing the page for the first time
Create an application based on a preset workflow. The Application Development page is directly displayed.
- Method 2: Accessing the page when you have created an application before
Log in to the ModelArts Pro > NLP Suite console. By default, the AppDev > Workbench page is displayed. Locate the target application and click View in the Operation column. The Application Development page is displayed.
Creating Training Datasets
Choose Application Development > Select Data. On the page that is displayed, click Create Dataset. On the Create Dataset page that is displayed on the right, set basic information about a dataset based on its storage location and labeling information and click OK. For details, see Table 1.
| Parameter | Description |
|---|---|
| Dataset | Name of a dataset to be created |
| Description | Dataset description |
| Upload Mode | Mode for uploading training data. Currently, data can only be uploaded to OBS. Therefore the default value is OBS. |
| Input Dataset Path | Location where training data is stored in OBS Click the text box on the right of Input Dataset Path. In the displayed dialog box, select an OBS bucket and folder, and click OK. |
| Output Dataset Path | Location where the dataset to be created is stored in OBS Click Modify on the right of Output Dataset Path. In the displayed dialog box, select an OBS bucket and folder, and click OK. |
| Dataset Status | The uploaded training data can be labeled or unlabeled. You can set this parameter to Labeled or Unlabeled based on your service requirements. After selecting a dataset status, you can click Upload datasets in the same format as the labeled text classification template. or Upload datasets in the same format as the unlabeled text classification template. to download a dataset template. |
After creating training datasets, select the training dataset required for application development.
Labeled data is required during model training. If you upload labeled data, you can view the label parsing after the upload. If you want to modify the label of a dataset, click Label in the Operation column of the dataset. On the Dashboard page that is displayed, click Label in the upper right corner. On the displayed page, manually label data. For details, see Labeling Data > Text Classification.
If you upload unlabeled data, click Label in the Operation column of the dataset. On the Dashboard page that is displayed, click Label in the upper right corner. On the displayed page, manually label data. For details, see Labeling Data > Text Classification.
Merging Labels
If some labels of the selected dataset have a small number of samples, you can merge them.
Enable the label merging function
, and enter the maximum number of samples of labels to be merged and a new label name after label merging in the lower part of the page.
Viewing Label Parsing
After creating and selecting a training dataset, you can view the statistical data of label samples in the Label Parsing area. The horizontal axis indicates the labels, and the vertical axis indicates the number of valid samples corresponding to the label.
Follow-up Operations
On the Application Development > Select Data page, select a training dataset, label the data that is not labeled, and click Next to go to step Train Model. For details, see Training a Model.
Last Article: Introduction
Next Article: Labeling Data
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.