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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,017 Bytes
5a6e125 e3c6656 5a6e125 e3c6656 5a6e125 e3c6656 5a6e125 e3c6656 5a6e125 e3c6656 5a6e125 e3c6656 5a6e125 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | [
{
"sentence_id": 1,
"sentence": "كيف ساهمت السياسة",
"words":
[
{
"word_id": 1,
"word": "كيف",
"senses": [303048554, 303048555]
},
{
"word_id": 2,
"word": "ساهمت",
"senses": [303026923, 303026924, 303026925]
},
{
"word_id": 3,
"word": "السياسة",
"senses": [303027138, 303027139, 303027140, 303027141]
}
]
},
{
"sentence_id": 2,
"sentence": "الأميركية المستندة إلى",
"words":
[
{
"word_id": 1,
"word": "الأميركية",
"senses": [302004373]
},
{
"word_id": 2,
"word": "المستندة",
"senses": [302053376, 302053377]
},
{
"word_id": 3,
"word": "إلى",
"senses": [303002296, 303002297, 303002298]
}
]
}
] |