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.
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:
- Install Cohere
- Get the dataset
- Get the embeddings of the reviews (for both the training set and the test set)
- Train a classifier using the training set
- Evaluate the performance of the classifier on the testing set