Tharindu Ranasinghe
commited on
Commit
·
b032244
1
Parent(s):
7d3fd11
002: Create Readme
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MUDES - {Mu}ltilingual {De}tection of Offensive {S}pans
|
| 2 |
+
|
| 3 |
+
We provide state-of-the-art models to detect toxic spans in text. We have evaluated our models on Toxic Spans task at SemEval 2021 (Task 5).
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## Usage
|
| 7 |
+
You can use this model when you have [MUDES](https://github.com/TharinduDR/MUDES) installed:
|
| 8 |
+
|
| 9 |
+
```bash
|
| 10 |
+
pip install mudes
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
Then you can use the model like this:
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
from mudes.app.mudes_app import MUDESApp
|
| 17 |
+
|
| 18 |
+
app = MUDESApp("en-base", use_cuda=False)
|
| 19 |
+
print(app.predict_toxic_spans("You motherfucking cunt", spans=True))
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## System Demonstration
|
| 24 |
+
An experimental demonstration interface called MUDES-UI has been released on [GitHub](https://github.com/TharinduDR/MUDES-UI) and can be checked out in [here](http://rgcl.wlv.ac.uk/tharindu_demo/).
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
## Citing & Authors
|
| 28 |
+
|
| 29 |
+
If you find this model helpful, feel free to cite our publication
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
@inproceedings{ranasinghemudes,
|
| 33 |
+
title={{MUDES: Multilingual Detection of Offensive Spans}},
|
| 34 |
+
author={Tharindu Ranasinghe and Marcos Zampieri},
|
| 35 |
+
booktitle={Proceedings of NAACL},
|
| 36 |
+
year={2021}
|
| 37 |
+
}
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
@inproceedings{ranasinghe2021semeval,
|
| 42 |
+
title={{WLV-RIT at SemEval-2021 Task 5: A Neural Transformer Framework for Detecting Toxic Spans}},
|
| 43 |
+
author = {Ranasinghe, Tharindu and Sarkar, Diptanu and Zampieri, Marcos and Ororbia, Alex},
|
| 44 |
+
booktitle={Proceedings of SemEval},
|
| 45 |
+
year={2021}
|
| 46 |
+
}
|
| 47 |
+
```
|