Instructions to use AfnanTS/ARBERT_ArLAMA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AfnanTS/ARBERT_ArLAMA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="AfnanTS/ARBERT_ArLAMA")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("AfnanTS/ARBERT_ArLAMA") model = AutoModelForMaskedLM.from_pretrained("AfnanTS/ARBERT_ArLAMA") - Notebooks
- Google Colab
- Kaggle
ARBERT_ArLAMA is a pre-trained Arabic language model fine-tuned using Masked Language Modeling (MLM) tasks. This model leverages Knowledge Graphs (KGs) to capture semantic relations in Arabic text, aiming to improve vocabulary comprehension and performance in downstream tasks.
Uses
Direct Use
Filling masked tokens in Arabic text, particularly in contexts enriched with knowledge from KGs.
Downstream Use
Can be further fine-tuned for Arabic NLP tasks that require semantic understanding, such as text classification or question answering.
How to Get Started with the Model
from transformers import pipeline
fill_mask = pipeline("fill-mask", model="AfnanTS/ARBERT_ArLAMA")
fill_mask("اللغة [MASK] مهمة جدا."
Training Details
Training Data
Trained on the ArLAMA dataset, which is designed to represent Knowledge Graphs in natural language.
Training Procedure
Continued pre-training of ArBERTv1 using Masked Language Modeling (MLM) to integrate KG-based knowledge.
- Downloads last month
- 7
Model tree for AfnanTS/ARBERT_ArLAMA
Base model
UBC-NLP/ARBERTv2