Instructions to use BillyLin/text-emotion-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BillyLin/text-emotion-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="BillyLin/text-emotion-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BillyLin/text-emotion-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download text-emotion.yaml from BillyLin/text-emotion-classification: direct link, hf CLI and curl.
- Browser
- Download file 95 Bytes
-
https://huggingface.co/BillyLin/text-emotion-classification/resolve/main/text-emotion.yaml
- Command line
-
hf download hf://BillyLin/text-emotion-classification/text-emotion.yaml
-
curl -L -o text-emotion.yaml https://huggingface.co/BillyLin/text-emotion-classification/resolve/main/text-emotion.yaml
95 Bytes
| - 0: 伤心 | |
| - 1: 生气 | |
| - 2: 关心 | |
| - 3: 惊讶 | |
| - 4: 开心 | |
| - 5: 平静 | |
| - 6: 厌恶 | |
| - 7: 恐惧 |