Views
No views yet
textdetox dataset. All credits go to the authors of the original corpora.| Language | eval f1 | train f1 | Δ f1 |
|---|---|---|---|
| en | 0.942105 | 0.975587 | -0.033482 |
| fr | 0.876783 | 0.943089 | -0.066306 |
| de | 0.872774 | 0.919155 | -0.046381 |
| hi | 0.845178 | 0.885335 | -0.040157 |
| it | 0.805556 | 0.857527 | -0.051971 |
| es | 0.784119 | 0.856389 | -0.072270 |
| ja | 0.745592 | 0.758249 | -0.012657 |
| uk | 0.689095 | 0.686985 | +0.002110 |
| hin | 0.688172 | 0.806429 | -0.118257 |
| ru | 0.688372 | 0.724231 | -0.035858 |
| am | 0.648816 | 0.691555 | -0.042739 |
| tt | 0.644608 | 0.695892 | -0.051284 |
| ar | 0.644471 | 0.670118 | -0.025647 |
| zh | 0.640371 | 0.660996 | -0.020625 |
| he | 0.514851 | 0.524138 | -0.009286 |
| Language | eval f1 | train f1 | Δ F1 |
|---|---|---|---|
| en | 0.942257 | 0.974907 | -0.032650 |
| fr | 0.876783 | 0.942214 | -0.065431 |
| de | 0.872636 | 0.918535 | -0.045900 |
| hi | 0.842912 | 0.884449 | -0.041538 |
| it | 0.806574 | 0.858737 | -0.052163 |
| es | 0.782609 | 0.856392 | -0.073784 |
| ja | 0.750317 | 0.756441 | -0.006124 |
| hin | 0.697051 | 0.806604 | -0.109553 |
| ru | 0.693208 | 0.722626 | -0.029418 |
| uk | 0.689095 | 0.684864 | +0.004232 |
| am | 0.647363 | 0.689944 | -0.042581 |
| ar | 0.644471 | 0.669856 | -0.025386 |
| tt | 0.642066 | 0.695060 | -0.052993 |
| zh | 0.640462 | 0.661274 | -0.020811 |
| he | 0.507463 | 0.521815 | -0.014352 |
1from transformers import AutoTokenizer
2from optimum.onnxruntime import ORTModelForSequenceClassification
3import numpy as np
4# Load model and tokenizer using optimum
5model = ORTModelForSequenceClassification.from_pretrained(
6 "gravitee-io/bert-tiny-toxicity",
7 file_name="model.quant.onnx"
8)
9tokenizer = AutoTokenizer.from_pretrained("gravitee-io/bert-tiny-toxicity")
10# Tokenize input
11text = "Your text here"
12inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
13# Run inference
14outputs = model(**inputs)
15logits = outputs.logits
16# Optional: convert to probabilities
17probs = 1 / (1 + np.exp(-logits))
18print(probs)1@misc{bhargava2021generalization,
2 title={Generalization in NLI: Ways (Not) To Go Beyond Simple Heuristics},
3 author={Prajjwal Bhargava and Aleksandr Drozd and Anna Rogers},
4 year={2021},
5 eprint={2110.01518},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}
9
10@article{DBLP:journals/corr/abs-1908-08962,
11 author = {Iulia Turc and
12 Ming{-}Wei Chang and
13 Kenton Lee and
14 Kristina Toutanova},
15 title = {Well-Read Students Learn Better: The Impact of Student Initialization
16 on Knowledge Distillation},
17 journal = {CoRR},
18 volume = {abs/1908.08962},
19 year = {2019},
20 url = {http://arxiv.org/abs/1908.08962},
21 eprinttype = {arXiv},
22 eprint = {1908.08962},
23 timestamp = {Thu, 29 Aug 2019 16:32:34 +0200},
24 biburl = {https://dblp.org/rec/journals/corr/abs-1908-08962.bib},
25 bibsource = {dblp computer science bibliography, https://dblp.org}
26}1@inproceedings{dementieva2024overview,
2 title={Overview of the Multilingual Text Detoxification Task at PAN 2024},
3 author={Dementieva, Daryna and Moskovskiy, Daniil and Babakov, Nikolay and Ayele, Abinew Ali and Rizwan, Naquee and Schneider, Frolian and Wang, Xintog and Yimam, Seid Muhie and Ustalov, Dmitry and Stakovskii, Elisei and Smirnova, Alisa and Elnagar, Ashraf and Mukherjee, Animesh and Panchenko, Alexander},
4 booktitle={Working Notes of CLEF 2024 - Conference and Labs of the Evaluation Forum},
5 editor={Guglielmo Faggioli and Nicola Ferro and Petra Galu{{s}}{{c}}{'a}kov{'a} and Alba Garc{'i}a Seco de Herrera},
6 year={2024},
7 organization={CEUR-WS.org}
8}
9@inproceedings{dementieva-etal-2024-toxicity,
10 title = "Toxicity Classification in {U}krainian",
11 author = "Dementieva, Daryna and Khylenko, Valeriia and Babakov, Nikolay and Groh, Georg",
12 booktitle = "Proceedings of the 8th Workshop on Online Abuse and Harms (WOAH 2024)",
13 month = jun,
14 year = "2024",
15 address = "Mexico City, Mexico",
16 publisher = "Association for Computational Linguistics",
17 url = "https://aclanthology.org/2024.woah-1.19/",
18 doi = "10.18653/v1/2024.woah-1.19",
19 pages = "244--255"
20}
21@inproceedings{DBLP:conf/ecir/BevendorffCCDEFFKMMPPRRSSSTUWZ24,
22 author = {Janek Bevendorff and et al.},
23 title = {Overview of {PAN} 2024: Multi-author Writing Style Analysis, Multilingual Text Detoxification, Oppositional Thinking Analysis, and Generative {AI} Authorship Verification - Extended Abstract},
24 booktitle = {ECIR 2024, Glasgow, UK, March 24-28, 2024, Proceedings, Part {VI}},
25 series = {Lecture Notes in Computer Science},
26 volume = {14613},
27 pages = {3--10},
28 publisher = {Springer},
29 year = {2024},
30 doi = {10.1007/978-3-031-56072-9_1}
31}