
## Binary toxicity classifier for Ukrainian

This is the fine-tuned on the [Ukrainian toxicity classification dataset](https://huggingface.co/datasets/ukr-detect/ukr-toxicity-dataset) ["xlm-roberta-base"](https://huggingface.co/xlm-roberta-base) instance. 

The evaluation metrics for binary toxicity classification on a test set are: 

| Metric    | Value |
|-----------|-------|
| F1-score  | 0.99  |
| Precision | 0.99  |
| Recall    | 0.99  |
| Accuracy  | 0.99  |


## How to use: 

```
from transformers import pipeline

classifier = pipeline("text-classification",
                       model="ukr-detect/ukr-toxicity-classifier")
```
{"language": ["uk"], "license": "openrail++", "datasets": ["ukr-detect/ukr-toxicity-dataset"], "widget": [{"text": "\u0422\u0438 \u043d\u0435\u0439\u043c\u043e\u0432\u0456\u0440\u043d\u0430!"}]}
transformers safetensors xlm-roberta text-classification uk dataset:ukr-detect/ukr-toxicity-dataset license:openrail++ autotrain_compatible endpoints_compatible region:us