Instructions to use NLPclass/NER_tokenclassification_persian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NLPclass/NER_tokenclassification_persian with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="NLPclass/NER_tokenclassification_persian")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("NLPclass/NER_tokenclassification_persian") model = AutoModelForTokenClassification.from_pretrained("NLPclass/NER_tokenclassification_persian", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download vocab.txt from NLPclass/NER_tokenclassification_persian: direct link, hf CLI and curl.
- Browser
- Download file 1.2 MB
-
https://huggingface.co/NLPclass/NER_tokenclassification_persian/resolve/main/vocab.txt
- Command line
-
hf download hf://NLPclass/NER_tokenclassification_persian/vocab.txt
-
curl -L -o vocab.txt https://huggingface.co/NLPclass/NER_tokenclassification_persian/resolve/main/vocab.txt
1.2 MB
File too large to display, you can check the raw version instead.