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
Commit History
-
Update README.md
Verified signature5b8850f -
Update README.md
Verified signatureHi, this model is a Persian text emotion classification.a657291 -
Upload tokenizer
Verified signatured5a6e45 -
Upload BertForSequenceClassification
Verified signaturec94583a -
initial commit
Verified signature0a08cca