Text Classification
Transformers
Safetensors
Spanish
bert
emotion-recognition
spanish
text-embeddings-inference
Instructions to use alexander1010/expon-emotions with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alexander1010/expon-emotions with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="alexander1010/expon-emotions")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("alexander1010/expon-emotions") model = AutoModelForSequenceClassification.from_pretrained("alexander1010/expon-emotions", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| import json | |
| from datasets import load_dataset | |
| def load_emotion_dataset(): | |
| dataset = load_dataset("json", data_files={ | |
| "train": "data/train.jsonl", | |
| "validation": "data/valid.jsonl", | |
| "test": "data/test.jsonl" | |
| }) | |
| return dataset | |