moha commited on
Commit
3d19b3e
1 Parent(s): e3c2d40
Files changed (1) hide show
  1. README.md +34 -0
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: ar
3
+ widget:
4
+ - text: "للوقايه من عدم انتشار [MASK]"
5
+ ---
6
+ # arabert_c19: An Arabert model pretrained on 1.5 million COVID-19 multi-dialect Arabic tweets
7
+ **ARABERT COVID-19** is a pretrained (fine-tuned) version of the AraBERT v2 model (https://huggingface.co/aubmindlab/bert-base-arabertv02). The pretraining was done using 1.5 million multi-dialect Arabic tweets regarding the COVID-19 pandemic from the “Large Arabic Twitter Dataset on COVID-19” (https://arxiv.org/abs/2004.04315).
8
+ The model can achieve better results for the tasks that deal with multi-dialect Arabic tweets in relation to the COVID-19 pandemic.
9
+
10
+ # Classification results for multiple tasks including fake-news and hate speech detection when using arabert_c19 and mbert_ar_c19:
11
+ For more details refer to the paper (link)
12
+
13
+ | | arabert | mbert | distilbert multi | arabert Covid-19 | mbert Covid-19 |
14
+ |------------------------------------|----------|----------|------------------|------------------|----------------|
15
+ | Contains hate (Binary) | 0.8346 | 0.6675 | 0.7145 | `0.8649` | 0.8492 |
16
+ | Talk about a cure (Binary) | 0.8193 | 0.7406 | 0.7127 | 0.9055 | `0.9176` |
17
+ | News or opinion (Binary) | 0.8987 | 0.8332 | 0.8099 | `0.9163` | 0.9116 |
18
+ | Contains fake information (Binary) | 0.6415 | 0.5428 | 0.4743 | `0.7739` | 0.7228 |
19
+
20
+
21
+ # Preprocessing
22
+
23
+ ```python
24
+ from arabert.preprocess import ArabertPreprocessor
25
+ model_name="moha/arabert_c19"
26
+ arabert_prep = ArabertPreprocessor(model_name=model_name)
27
+ text = "للوقايه من عدم انتشار كورونا عليك اولا غسل اليدين بالماء والصابون وتكون عملية الغسل دقيقه تشمل راحة اليد الأصابع التركيز على الإبهام"
28
+ arabert_prep.preprocess(text)
29
+ ```
30
+
31
+
32
+ # Contacts
33
+ **Hadj Ameur**: [Github](https://github.com/MohamedHadjAmeur) | <mohamedhadjameur@gmail.com> | <mhadjameur@cerist.dz>
34
+