Classification and Generation of Arabic News Using ArabicT5
Browse filescategory_mapping = {
'Political':1,
'Economy':2,
'Health':3,
'Sport':4,
'Culture':5,
'Technology':6,
'Art':7,
'Accidents':8
# Add more categories as needed
}
README.md
CHANGED
@@ -6,4 +6,15 @@ metrics:
|
|
6 |
- bleu
|
7 |
library_name: transformers
|
8 |
pipeline_tag: text2text-generation
|
9 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
- bleu
|
7 |
library_name: transformers
|
8 |
pipeline_tag: text2text-generation
|
9 |
+
---
|
10 |
+
category_mapping = {
|
11 |
+
'Political':1,
|
12 |
+
'Economy':2,
|
13 |
+
'Health':3,
|
14 |
+
'Sport':4,
|
15 |
+
'Culture':5,
|
16 |
+
'Technology':6,
|
17 |
+
'Art':7,
|
18 |
+
'Accidents':8
|
19 |
+
# Add more categories as needed
|
20 |
+
}
|