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.

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

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Inputs


text_col: column:text

A text column to label.

Outputs


labels: column:list[category]

A column containing the labels assigned to each text.

Back to top