Update README.md
Browse files
README.md
CHANGED
@@ -21,10 +21,36 @@ category_mapping = {
|
|
21 |
'Art':7,
|
22 |
'Accidents':8
|
23 |
}
|
|
|
|
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
# Example usage
|
|
|
28 |
from transformers import T5ForConditionalGeneration, T5Tokenizer, pipeline
|
29 |
from arabert.preprocess import ArabertPreprocessor
|
30 |
|
@@ -43,4 +69,8 @@ g=generation_pipeline(text_clean,
|
|
43 |
top_p=0.9,
|
44 |
repetition_penalty = 3.0,
|
45 |
no_repeat_ngram_size = 3)[0]["generated_text"]
|
|
|
46 |
|
|
|
|
|
|
|
|
21 |
'Art':7,
|
22 |
'Accidents':8
|
23 |
}
|
24 |
+
widget:
|
25 |
+
- text: خسارة مدوية لليفربول امام تولوز وفوز كبير لبيتيس، انتصار الفيولا واستون فيلا في دوري المؤتمر، والد لويس دياز حر، فوز انديانا على ميلووكي, انتصار للانترانيك"
|
26 |
|
27 |
+
model-index:
|
28 |
+
- name: Hezam/arabic-T5-news-classification-generation
|
29 |
+
results:
|
30 |
+
- task:
|
31 |
+
type: classification and generation
|
32 |
+
name: Classification_Generation
|
33 |
+
metrics:
|
34 |
+
- name: Accuracy
|
35 |
+
type: accuracy
|
36 |
+
value: 96.67%
|
37 |
+
verified: true
|
38 |
+
- name: F1_score
|
39 |
+
type: f1_score
|
40 |
+
value: 96.67%
|
41 |
+
verified: true
|
42 |
+
- name: BLEU
|
43 |
+
type: bleu
|
44 |
+
value: 96.23%
|
45 |
+
verified: true
|
46 |
+
- name: loss
|
47 |
+
type: loss
|
48 |
+
value: 0.5716450214385986
|
49 |
+
verified: true
|
50 |
+
---
|
51 |
|
52 |
# Example usage
|
53 |
+
```python
|
54 |
from transformers import T5ForConditionalGeneration, T5Tokenizer, pipeline
|
55 |
from arabert.preprocess import ArabertPreprocessor
|
56 |
|
|
|
69 |
top_p=0.9,
|
70 |
repetition_penalty = 3.0,
|
71 |
no_repeat_ngram_size = 3)[0]["generated_text"]
|
72 |
+
```
|
73 |
|
74 |
+
```bash
|
75 |
+
output:
|
76 |
+
```
|