Instructions to use SinaLab/ArabGlossBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SinaLab/ArabGlossBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SinaLab/ArabGlossBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SinaLab/ArabGlossBERT") model = AutoModelForSequenceClassification.from_pretrained("SinaLab/ArabGlossBERT") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -10,13 +10,13 @@
|
|
| 10 |
"id2label": {
|
| 11 |
"0": "LABEL_0",
|
| 12 |
"1": "LABEL_1"
|
| 13 |
-
}
|
| 14 |
"initializer_range": 0.02,
|
| 15 |
"intermediate_size": 3072,
|
| 16 |
"label2id": {
|
| 17 |
"LABEL_0": 0,
|
| 18 |
"LABEL_1": 1
|
| 19 |
-
}
|
| 20 |
"layer_norm_eps": 1e-12,
|
| 21 |
"max_position_embeddings": 512,
|
| 22 |
"model_type": "bert",
|
|
|
|
| 10 |
"id2label": {
|
| 11 |
"0": "LABEL_0",
|
| 12 |
"1": "LABEL_1"
|
| 13 |
+
},
|
| 14 |
"initializer_range": 0.02,
|
| 15 |
"intermediate_size": 3072,
|
| 16 |
"label2id": {
|
| 17 |
"LABEL_0": 0,
|
| 18 |
"LABEL_1": 1
|
| 19 |
+
},
|
| 20 |
"layer_norm_eps": 1e-12,
|
| 21 |
"max_position_embeddings": 512,
|
| 22 |
"model_type": "bert",
|