unimelb-nlp/wikiann
Viewer • Updated • 2M • 45.2k • 121
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") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("abdusah/arabert-ner")
model = AutoModelForTokenClassification.from_pretrained("abdusah/arabert-ner")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("abdusah/arabert-ner")
model = AutoModelForTokenClassification.from_pretrained("abdusah/arabert-ner")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="abdusah/arabert-ner")