create readme
Browse files
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- ar
|
4 |
+
- dz
|
5 |
+
|
6 |
+
tags:
|
7 |
+
- pytorch
|
8 |
+
- bert
|
9 |
+
- multilingual
|
10 |
+
- ar
|
11 |
+
- dz
|
12 |
+
|
13 |
+
widget:
|
14 |
+
- text: "انا جزائري عايش في قسنطينة"
|
15 |
+
- text: "rabi yahfdek khouya la3ziz"
|
16 |
+
- text: "123 viva l'Agérie, tahya el djazair !"
|
17 |
+
- text: "ye3ayi l film hedak ghir akhtik"
|
18 |
+
|
19 |
+
inference: true
|
20 |
+
---
|
21 |
+
|
22 |
+
<img src="https://raw.githubusercontent.com/alger-ia/dziribert/main/dziribert_drawing.png" alt="drawing" width="25%" height="25%" align="right"/>
|
23 |
+
|
24 |
+
|
25 |
+
# DziriBERT Sentiment
|
26 |
+
|
27 |
+
|
28 |
+
DziriBERT is the first Transformer-based Language Model that has been pre-trained specifically for the Algerian Dialect. It handles Algerian text contents written using both Arabic and Latin characters.
|
29 |
+
This is a fine-tuned version that is ready to use for sentiment classification.
|
30 |
+
|
31 |
+
For more information, please visit our paper: https://arxiv.org/pdf/2109.12346.pdf.
|
32 |
+
|
33 |
+
## How to use
|
34 |
+
|
35 |
+
```python
|
36 |
+
from transformers import BertTokenizer, BertForSequenceClassification
|
37 |
+
|
38 |
+
tokenizer = BertTokenizer.from_pretrained("alger-ia/dziribert_sentiment")
|
39 |
+
model = BertForSequenceClassification.from_pretrained("alger-ia/dziribert_sentiment")
|
40 |
+
|
41 |
+
```
|
42 |
+
|
43 |
+
You can find a fine-tuning script in our Github repo: https://github.com/alger-ia/dziribert
|
44 |
+
|
45 |
+
### How to cite
|
46 |
+
|
47 |
+
```bibtex
|
48 |
+
@article{dziribert,
|
49 |
+
title={DziriBERT: a Pre-trained Language Model for the Algerian Dialect},
|
50 |
+
author={Abdaoui, Amine and Berrimi, Mohamed and Oussalah, Mourad and Moussaoui, Abdelouahab},
|
51 |
+
journal={arXiv preprint arXiv:2109.12346},
|
52 |
+
year={2021}
|
53 |
+
}
|
54 |
+
```
|
55 |
+
|
56 |
+
## Contact
|
57 |
+
|
58 |
+
Please contact [email protected] for any question, feedback or request.
|