Text Classification
Transformers
PyTorch
English
roberta
distilroberta
sentiment
emotion
twitter
reddit
text-embeddings-inference
Run this model with HF Jobs
Run michelleli99/emotion_text_classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/michelleli99/emotion_text_classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/michelleli99/emotion_text_classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use michelleli99/emotion_text_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use michelleli99/emotion_text_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="michelleli99/emotion_text_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("michelleli99/emotion_text_classifier") model = AutoModelForSequenceClassification.from_pretrained("michelleli99/emotion_text_classifier", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Michelle Li commited on
Commit ·
abdbd9c
1
Parent(s): 34091d3
Update README.md
Browse files19 unmodified lines202122232425267 unmodified lines3435363738394019 unmodified linesDistilRoBERTa-base is a transformers model, which is pre-trained on the Friends show to classify emotions from text data. It predicts 6 Ekman emotions and a neutral class. These emotions include anger, disgust, fear, joy, neutral, sadness, and surprise.The model is a fine-tuned version of [Emotion English DistilRoBERTa-base](https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/) and [DistilRoBERTa-base](https://huggingface.co/j-hartmann/emotion-english-distilroberta-base). This model was initially trained on|Name|anger|disgust|fear|joy|neutral|sadness|surprise||---|---|---|---|---|---|---|---|7 unmodified linesIt was fine-tuned on:|Name|anger|disgust|fear|joy|neutral|sadness|surprise||---|---|---|---|---|---|---|---||Crowdflower (2016)|Yes|-|-|Yes|Yes|Yes|Yes|# How to Use19 unmodified lines202122232425267 unmodified lines3435363738394019 unmodified linesDistilRoBERTa-base is a transformers model, which is pre-trained on the Friends show to classify emotions from text data. It predicts 6 Ekman emotions and a neutral class. These emotions include anger, disgust, fear, joy, neutral, sadness, and surprise.The model is a fine-tuned version of [Emotion English DistilRoBERTa-base](https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/) and [DistilRoBERTa-base](https://huggingface.co/j-hartmann/emotion-english-distilroberta-base). This model was initially trained on the following table (from [Emotion English DistilRoBERTa-base](https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/):|Name|anger|disgust|fear|joy|neutral|sadness|surprise||---|---|---|---|---|---|---|---|7 unmodified linesIt was fine-tuned on:|Name|anger|disgust|fear|joy|neutral|sadness|surprise||---|---|---|---|---|---|---|---||Emotion Lines (Friends)|Yes|Yes|Yes|Yes|Yes|Yes|Yes|# How to Use
README.md+2-2