Instructions to use moha/arabert_c19 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moha/arabert_c19 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="moha/arabert_c19")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("moha/arabert_c19") model = AutoModelForMaskedLM.from_pretrained("moha/arabert_c19", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,13 +10,12 @@ The model can achieve better results for the tasks that deal with multi-dialect
|
|
| 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 |
-
|
| 14 |
| | arabert | mbert | distilbert multi | arabert Covid-19 | mbert Covid-19 |
|
| 15 |
|------------------------------------|----------|----------|------------------|------------------|----------------|
|
| 16 |
-
| Contains hate (Binary) | 0.8346 | 0.6675 | 0.7145 | 0.8649 | 0.8492 |
|
| 17 |
-
| Talk about a cure (Binary) | 0.8193 | 0.7406 | 0.7127 | 0.9055 | 0.9176 |
|
| 18 |
-
| News or opinion (Binary) | 0.8987 | 0.8332 | 0.8099 | 0.9163 | 0.9116 |
|
| 19 |
-
| Contains fake information (Binary) | 0.6415 | 0.5428 | 0.4743 | 0.7739 | 0.7228 |
|
| 20 |
|
| 21 |
|
| 22 |
# Preprocessing
|
|
|
|
| 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
|