SeyedAli/Persian-Text-NER
Viewer • Updated • 23k • 26 • 1
How to use SeyedAli/Persian-Text-NER-Bert-V1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="SeyedAli/Persian-Text-NER-Bert-V1") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("SeyedAli/Persian-Text-NER-Bert-V1")
model = AutoModelForTokenClassification.from_pretrained("SeyedAli/Persian-Text-NER-Bert-V1")