Text Classification
Transformers
PyTorch
Arabic
t5
text2text-generation
Classification
ArabicT5
Text Classification
Instructions to use Hezam/ArabicT5_Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hezam/ArabicT5_Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Hezam/ArabicT5_Classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Hezam/ArabicT5_Classification") model = AutoModelForSeq2SeqLM.from_pretrained("Hezam/ArabicT5_Classification") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
category_mapping = {
|
| 2 |
'Politics':1,
|
| 3 |
'Finance':2,
|
|
@@ -6,4 +14,4 @@ category_mapping = {
|
|
| 6 |
'Culture':5,
|
| 7 |
'Tech':6,
|
| 8 |
'Religion':7
|
| 9 |
-
}
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ar
|
| 4 |
+
metrics:
|
| 5 |
+
- accuracy
|
| 6 |
+
- bleu
|
| 7 |
+
pipeline_tag: text-classification
|
| 8 |
+
---
|
| 9 |
category_mapping = {
|
| 10 |
'Politics':1,
|
| 11 |
'Finance':2,
|
|
|
|
| 14 |
'Culture':5,
|
| 15 |
'Tech':6,
|
| 16 |
'Religion':7
|
| 17 |
+
}
|