Instructions to use NLPclass/Named_entity_recognition_persian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NLPclass/Named_entity_recognition_persian with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="NLPclass/Named_entity_recognition_persian")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("NLPclass/Named_entity_recognition_persian") model = AutoModelForTokenClassification.from_pretrained("NLPclass/Named_entity_recognition_persian", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature33aec36
-
Update README.md
Verified signature0bd1a97 -
Update README.md
Verified signature3060464 -
Update README.md
Verified signatureNamed entity recognition on persian data with bert tokenizer data=20484 sentence tokenizer=HooshvareLab/bert-fa-base-uncased ner_tags: ['O', 'B-pro', 'I-pro', 'B-pers', 'I-pers', 'B-org', 'I-org', 'B-loc', 'I-loc', 'B-fac', 'I-fac', 'B-event', 'I-event'] training_args= learning_rate=2e-5, per_device_train_batch_size=16, per_device_eval_batch_size=16, num_train_epochs=4, weight_decay=0.01, Training Loss=0.001000 sample1: [{'entity': 'B-pers', 'score': 0.9998802, 'index': 1, 'word': 'عباس', 'start': 1, 'end': 5}] sample2: {'entity': 'B-loc', 'score': 0.9976519, 'index': 1, 'word': 'ایران', 'start': 1, 'end': 6}35f3b0c -
Upload tokenizer
Verified signatureeb6f177 -
Upload BertForTokenClassification
Verified signaturebc737db -
initial commit
Verified signature4822736