Skip to main content
Classify text into categories using Cohere’s models with custom examples. This function returns a simplified table format with the input text, predicted label, and confidence score.

Samples

Classify sentiment

Categorize text as positive or negative:
Returns:

Classify support tickets

Categorize customer inquiries:

Batch classification

Classify multiple texts at once:

Arguments

Returns

TABLE: A table with the following columns: