ai4bharat/naamapadam
Viewer • Updated • 5.79M • 474 • 10
How to use Red-8/Gujarati_NER-1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Red-8/Gujarati_NER-1") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Red-8/Gujarati_NER-1")
model = AutoModelForTokenClassification.from_pretrained("Red-8/Gujarati_NER-1")