Views
No views yet
| Language | Code | F1 Score |
|---|---|---|
| English | en | 0.9225 |
| Russian | ru | 0.9525 |
| Ukrainian | uk | 0.96 |
| German | de | 0.7325 |
| Spanish | es | 0.7125 |
| Arabic | ar | 0.6625 |
| Amharic | am | 0.5575 |
| Hindi | hi | 0.9725 |
| Chinese | zh | 0.9175 |
| Italian | it | 0.5864 |
| French | fr | 0.9235 |
| Hinglish | hin | 0.61 |
| Hebrew | he | 0.8775 |
| Japanese | ja | 0.8773 |
| Tatar | tt | 0.5744 |
1import torch
2from transformers import AutoTokenizer, AutoModelForSequenceClassification
3
4tokenizer = AutoTokenizer.from_pretrained('textdetox/xlmr-large-toxicity-classifier-v2')
5model = AutoModelForSequenceClassification.from_pretrained('textdetox/xlmr-large-toxicity-classifier-v2')
6
7batch = tokenizer.encode("You are amazing!", return_tensors="pt")
8
9output = model(batch)
10# idx 0 for neutral, idx 1 for toxic@inproceedings{dementieva2025overview,
title={Overview of the Multilingual Text Detoxification Task at PAN 2025},
author={Dementieva, Daryna and
Protasov, Vitaly and
Babakov, Nikolay and
Rizwan, Naquee and
Alimova, Ilseyar and
Brune, Caroline and
Konovalov, Vasily and
Muti, Arianna and
Liebeskind, Chaya and
Litvak, Marina and
Nozza, Debora, and
Shah Khan, Shehryaar and
Takeshita, Sotaro and
Vanetik, Natalia and
Ayele, Abinew Ali and
Schneider, Frolian and
Wang, Xintog and
Yimam, Seid Muhie and
Elnagar, Ashraf and
Mukherjee, Animesh and
Panchenko, Alexander},
booktitle={Working Notes of CLEF 2025 -- Conference and Labs of the Evaluation Forum},
editor={Guglielmo Faggioli and Nicola Ferro and Paolo Rosso and Damiano Spina},
month = sep,
publisher = {CEUR-WS.org},
series = {CEUR Workshop Proceedings},
site = {Vienna, Austria},
url = {https://ceur-ws.org/Vol-4038/paper_278.pdf},
year = 2025
}