cohere-jigsaw
This project tests Cohere's Toxicity model without any finetuning on Jigsaw dataset.
You can use the following steps to get started:
-
Setup
python -m venv .venv && source .venv/bin/activate pip install -r requirements.txt
-
Sign up, get your API_KEYS and make it available for the code.
export COHERE_API_KEY=OrZ.....TCo
-
Download the Jigsaw test data and test labels, extract it and put in the current directory.
-
Run it! This will output classification report like below. By default, it will evaluate on first 100 raws of the test data, which you can change in the code
precision recall f1-score support 0 0.99 0.76 0.86 94 1 0.18 0.83 0.29 6 accuracy 0.76 100 macro avg 0.58 0.79 0.57 100 weighted avg 0.94 0.76 0.82 100