Multilingual text quality scoring
The Multilingual Text Quality Scoring operator scores text based on dimensions such as language consistency, readability, naturalness, content completeness, and structure. This document describes how to configure the Multilingual Text Quality Scoring operator.
Prerequisites
-
To use the workflow feature, you must first purchase the unstructured data feature for your instance.
-
You have created a workflow. For detailed steps, see Create and manage workflows.
Permissions
In a Basic project, the project administrator, developers, analysts, and custom project roles with the Dataset-Use permission can use all datasets in the project for operator input and output.
Supported file formats
The Multilingual Text Quality Scoring operator processes only the field values in a metadata table.
Procedure
-
In the top menu bar of the Dataphin homepage, choose R&D > Data Development.
-
On the Development page, select Project from the top menu bar.
-
In the left-side navigation pane, choose Data Processing > Workflow. In the Workflow list on the left, click the target workflow to open its canvas. From the Operator Library on the left, drag the Multilingual Text Quality Scoring operator to the canvas. In the Multilingual Text Quality Scoring panel on the right, configure the following parameters.
Parameter
Description
Step name
The name of the operator. Enter a name up to 256 characters long.
Input configuration
Dataset
Select the dataset to process. You can choose a Mixed Dataset or a Table Dataset. After selecting a dataset, you must also select a version. By default, the system selects the first version of the dataset in ascending order.
If this operator is downstream of another operator, the dataset selected here is typically the same as the output dataset of the upstream operator.
Input field
Select fields from the metadata table of the input dataset. The system processes the selected fields based on their type:
-
If the field is a URL, the system automatically fetches the resource from the URL and parses its content. Supported file formats include .txt, .md, .csv, .json, .xml, and .html.
-
If the field is not a URL, the system treats the field's value as plain text and does not parse it.
NoteDifferent models have strict input length limits. We recommend estimating the parsed document size before processing. If the content exceeds the model's maximum input length, the system may automatically truncate or refuse to process the content, which can compromise the integrity of the analysis results.
Filter condition (Optional)
Use SQL syntax. Enter only the conditions that follow the
WHEREclause. You can use global system variables, such as the business date ${bizdate}.Model configuration
Processing model
You can choose the Default (System Built-in Model) (multilingual-e5-small-aligned-quality) or a multimodal large model. If you choose a multimodal large model, you must specify the Model to use for this operator. You can only select models from Intelligent Application Management > Model Configuration that have a model type of Text and are Enabled.
NoteFor the pricing factor of the system model, see Built-in models supported by intelligent applications.
If you have purchased a premium license for your own model, no Credits are deducted. Otherwise, the service is billed at a 0.2x factor.
Output configuration
Dataset
You can select Source Dataset or Other Dataset. If the metadata table of the source dataset does not have a primary key, the output dataset defaults to Other Dataset.
When you select Other Dataset, you must also specify a Mixed Dataset or Table Dataset and its version as the output dataset. By default, the first version of the dataset in ascending order is selected. You can also select other versions of the source dataset.
When you select Source Dataset, the operator writes the generated metadata to the metadata table of the same version of the source dataset.
Load policy
If the metadata table of the selected output dataset has a primary key, Update on Primary Key Conflict is selected by default. If there is no primary key, Append Data is selected by default.
-
Append Data: Directly adds new data to the target table. An error occurs if a primary key or constraint conflict is detected.
-
Update on Primary Key Conflict: If a primary key or constraint conflict occurs, the system deletes the existing row with the conflicting primary key before inserting the new row.
-
Overwrite: Deletes all data from the target table before writing the new data.
NoteWhen you select Source Dataset as the output dataset, the only supported load policy is Update on Primary Key Conflict.
Field mapping
The Multilingual Text Quality Scoring operator has one fixed output field:
quality_score: The text quality score. The score ranges from 0 to 1, where a higher score indicates better quality. A score greater than 0.5 is generally considered good.By default, the operator's output fields are mapped to fields with the same name in the output dataset. You can also manually select target fields for custom mapping. Additionally, you can map pass-through fields from the source dataset to the target dataset. You can manage field mappings in the following ways:
-
Add output field: Click to add a new, empty field mapping row. This feature is available only when you select Other Dataset as the output dataset.
-
Batch map: Click to choose between batch manual mapping, same-name mapping, or same-row mapping. This feature is available only when you select Other Dataset as the output dataset.
-
Delete mapping: Click the Delete icon to remove the field mapping row. You cannot delete the mapping for the operator's fixed output field.
-
-
After you finish the configuration, click Save in the toolbar at the top of the canvas.
After you configure an individual operator, you can continue to build a complete workflow by connecting it to upstream or downstream operators.