Update README.md
Browse files
README.md
CHANGED
@@ -21,6 +21,8 @@ tags:
|
|
21 |
|
22 |
A multilingual [XLM-R-based (100 languages)](https://huggingface.co/FacebookAI/xlm-roberta-large) hate speech classification model fine-tuned on English, Italian and Slovenian data. Paper out soon...
|
23 |
|
|
|
|
|
24 |
Data available here: [English](https://www.clarin.si/repository/xmlui/handle/11356/1454); [Italian](https://www.clarin.si/repository/xmlui/handle/11356/1450); [Slovenian](https://www.clarin.si/repository/xmlui/handle/11356/1398)
|
25 |
|
26 |
**Training data**
|
@@ -58,7 +60,7 @@ Class-specific model F1-scores:
|
|
58 |
|
59 |
from transformers import AutoModelForSequenceClassification, TextClassificationPipeline, AutoTokenizer, AutoConfig
|
60 |
|
61 |
-
MODEL = "
|
62 |
tokenizer = AutoTokenizer.from_pretrained(MODEL)
|
63 |
config = AutoConfig.from_pretrained(MODEL)
|
64 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|
|
|
21 |
|
22 |
A multilingual [XLM-R-based (100 languages)](https://huggingface.co/FacebookAI/xlm-roberta-large) hate speech classification model fine-tuned on English, Italian and Slovenian data. Paper out soon...
|
23 |
|
24 |
+
Authors: Patricia-Carla Grigor, Bojan Evkoski, Petra Kralj Novak
|
25 |
+
|
26 |
Data available here: [English](https://www.clarin.si/repository/xmlui/handle/11356/1454); [Italian](https://www.clarin.si/repository/xmlui/handle/11356/1450); [Slovenian](https://www.clarin.si/repository/xmlui/handle/11356/1398)
|
27 |
|
28 |
**Training data**
|
|
|
60 |
|
61 |
from transformers import AutoModelForSequenceClassification, TextClassificationPipeline, AutoTokenizer, AutoConfig
|
62 |
|
63 |
+
MODEL = "IMSyPP/hate_speech_multilingual"
|
64 |
tokenizer = AutoTokenizer.from_pretrained(MODEL)
|
65 |
config = AutoConfig.from_pretrained(MODEL)
|
66 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|