Token Classification
Transformers
Safetensors
Persian
bert
named-entity-recognition
ner
nlp
persian
farsi
persian_ner
Instructions to use ViravirastSHZ/Hafez-NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ViravirastSHZ/Hafez-NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ViravirastSHZ/Hafez-NER")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ViravirastSHZ/Hafez-NER") model = AutoModelForTokenClassification.from_pretrained("ViravirastSHZ/Hafez-NER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
This is great
#1
by shalchianmh - opened
I have tested many available NER models for Persian. None of them was as good as this one. I really appreciate it.