Word-Sense-Disambiguation
Collection
2 items โข Updated
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")https://arxiv.org/abs/2205.09685 license: cc-by-4.0