Skip to content

Label political topics

NLP ยท text

Categorize the political topics of texts in Spanish.

Usage

The following are the step's expected inputs and outputs and their specific types.

label_political_topics(text_col: text) -> (labels: list[category])

Inputs


text_col: column:text

A text column to label.

Outputs


labels: column:list[category]

A column containing the labels assigned to each text.