How to use ychenNLP/arabic-relation-extraction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ychenNLP/arabic-relation-extraction")
# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ychenNLP/arabic-relation-extraction") model = AutoModelForSequenceClassification.from_pretrained("ychenNLP/arabic-relation-extraction")
· Sign up or log in to comment