Class EvaluationTextClassificationSpec (1.120.0)

EvaluationTextClassificationSpec(
 ground_truth_data: typing.Union[typing.List[str], str, pandas.core.frame.DataFrame],
 target_column_name: str,
 class_names: typing.List[str],
)

Spec for text classification model evaluation tasks.

Parameters

Name Description
target_column_name str

Required. The label column in the dataset provided in ground_truth_data. Required when task_name='text-classification'.

class_names List[str]

Required. A list of all possible label names in your dataset. Required when task_name='text-classification'.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.