Instructions to use NLPclass/Persian-Text-Emotion-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NLPclass/Persian-Text-Emotion-Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="NLPclass/Persian-Text-Emotion-Classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("NLPclass/Persian-Text-Emotion-Classification") model = AutoModelForSequenceClassification.from_pretrained("NLPclass/Persian-Text-Emotion-Classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from NLPclass/Persian-Text-Emotion-Classification: direct link, hf CLI and curl.
- Browser
- Download file 651 MB
-
https://huggingface.co/NLPclass/Persian-Text-Emotion-Classification/resolve/main/model.safetensors
- Command line
-
hf download hf://NLPclass/Persian-Text-Emotion-Classification/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/NLPclass/Persian-Text-Emotion-Classification/resolve/main/model.safetensors
651 MB
- Xet hash:
- 8a9d9e7ec7ab0ea69a06c15126d5b286aa1ccc392487ef0da6917051fef78614
- Size of remote file:
- 651 MB
- SHA256:
- 48e9b3c2a3f04b42940d234eec01393d4fba503276cb9e6c7d10003c903f802e
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.