mofawzy commited on
Commit
43919b9
1 Parent(s): 017450e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ar
4
+
5
+ datasets:
6
+ - AJGT
7
+
8
+ tags:
9
+ - labr
10
+
11
+ widget:
12
+ - text: "يهدي الله من يشاء"
13
+ - text: "الاسلوب قذر وقمامه"
14
+
15
+ ---
16
+
17
+ # BERT-LABR unbalanced
18
+ Arabic version bert model fine tuned on AJGT dataset
19
+
20
+ ## Data
21
+ The model were fine-tuned on ~1800 sentence from twitter for Jordanian dialect.
22
+
23
+
24
+ ## Results
25
+ | class | precision | recall | f1-score | Support |
26
+ |----------|-----------|--------|----------|---------|
27
+ | 0 | 0.9462 | 0.9778 | 0.9617 | 90 |
28
+ | 1 | 0.9399 | 0.9689 | 0.9542 | 90 |
29
+ | Accuracy | | | 0.9611 | 180 |
30
+
31
+
32
+
33
+ ## How to use
34
+
35
+ You can use these models by installing `torch` or `tensorflow` and Huggingface library `transformers`. And you can use it directly by initializing it like this:
36
+
37
+ ```python
38
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
39
+
40
+ model_name="mofawzy/bert-ajgt"
41
+ model = AutoModelForSequenceClassification.from_pretrained(model_name,num_labels=2)
42
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
43
+
44
+ ```