Skip to main content
Cohere

Search documentation

Type to search this documentation.

On this pageOverview

Text Classification (Embed)

This notebook shows how to build a classifiers using Cohere's embeddings. You can find the code on Github or in this colab notebook.

classifier.

The example classification task here will be sentiment analysis of film reviews. We'll train a simple classifier to detect whether a film review is negative (class 0) or positive (class 1).

We'll go through the following steps:

  1. Install Cohere
  2. Get the dataset
  3. Get the embeddings of the reviews (for both the training set and the test set)
  4. Train a classifier using the training set
  5. Evaluate the performance of the classifier on the testing set
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu