Updated on 2025-07-28 GMT+08:00

Processing Text Datasets

Before processing a text dataset, import data. For details, see Importing Data to the Pangu Platform.

To create a text dataset processing task, perform the following steps:

  1. Log in to ModelArts Studio Large Model Deveopment Platform. In the My Spaces area, click the required workspace.
    Figure 1 My Spaces
  2. In the navigation pane, choose Data engineering > Data Processing > Processing Tasks. Click Create Processing Job in the upper right corner.
  3. On the Create Processing Job page, select the text dataset to be processed and click Next.
  4. Go to the processing step arrangement page. For details about available processing operators for text datasets, see Text Dataset Processing Operators.
    1. In the Adding Operator pane on the left, select the required operators. You can select one or more operators based on the actual scenario.

      The platform supports preset operators and custom operators. For details about how to create a custom operator, see Custom Data Processing Operators.

    2. On the processing step orchestration page on the right, set operator parameters. You can drag on the right to adjust the operator execution sequence.
      Figure 2 Operator orchestration
    3. During orchestration, you can click Save new template in the upper right corner to save the current orchestration process as a template. During the creation of subsequent data processing tasks, you can select a processing template.

      If you select a processing template, the orchestrated processing steps will be deleted.

      Figure 3 Selecting a processing template
  5. After the processing steps are orchestrated, click Next to go to the Task Configuration page.
    • Resource Allocation

      Click to expand resource configuration and set task resources. You can also customize parameters. Click Add Parameters and enter the parameter name and value.

      Table 1 Parameter configuration

      Parameter Name

      Description

      numExecutors

      Number of executors. The default value is 2. An executor is a process running on a worker node. It executes tasks and returns the calculation result to the driver. One core in an executor can run one task at the same time. Therefore, more tasks can be processed at the same time if you increase the number of the executors. You can add executors (if they are available) to process more tasks concurrently and improve efficiency.

      numExecutors x executorMemory must be greater than or equal to 4 and less than or equal to 16.

      executorCores

      Number of CPU kernels used by each executor process. The default value is 2. Multiple cores in an executor can run multiple tasks at the same time, which increases the task concurrency. However, because all cores share the memory of an executor, you need to balance the memory and the number of cores.

      numExecutors x executorMemory must be greater than or equal to 4 and less than or equal to 16. The ratio of executorCores to executorMemory must be in the range of 1:2 to 1:4.

      executorMemory

      Memory size used by each Executor process. The default value is 4. Specifies the executor memory used for job execution and communication. You can increase the memory for a job that requires a great number of resources, and run small jobs concurrently with a smaller memory.

      The ratio of executorCores to executorMemory must be in the range of 1:2 to 1:4.

      driverCores

      Number of CPU kernels used by each driver process. The default value is 2. The driver schedules jobs and communicates with executors.

      The ratio of driverCores to driverMemory must be in the range of 1:2 to 1:4.

      driverMemory

      Memory used by the driver process. The default value is 4. The driver schedules jobs and communicates with executors. Add driver memory when the number and parallelism level of the tasks increases.

      The ratio of driverCores to driverMemory must be in the range of 1:2 to 1:4.

      Figure 4 Resource Allocation
    • Automatically Generate Processing Dataset

      Select and configure the information about the generated dataset, as shown in Figure 5. Click OK in the lower right corner. The platform starts the data combination task. After the task is successfully executed, a processed dataset is automatically generated.

      If you do not select this option, click OK in the lower right corner. The platform starts the combination task. After the combination task is successfully executed, manually generate a processed dataset.
      Figure 5 Automatically Generate Processing Dataset
    • (Optional) Extended Info

      You can select the industry and language, or customize dataset properties.

      Figure 6 Extended Info
  6. Click Start Process. After the data processing job is successfully executed, the status changes from Running to Succeeded, indicating that the data has been processed.
    • After data processing is complete, if you do not need to use the data labeling and data synthesis functions, click Generate in the Operation column on the Processing Tasks page to generate a processed dataset.
    • To view the processed dataset, choose Data Engineering > Data Management > Datasets, and click the Processed Dataset tab.