unimelb-nlp/wikiann
Viewer • Updated • 2M • 36.7k • 126
How to use abdusah/arabert-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="abdusah/arabert-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("abdusah/arabert-ner")
model = AutoModelForTokenClassification.from_pretrained("abdusah/arabert-ner", device_map="auto")