Downloads · 30 days
3
5% of all-time downloads
CURI-AI/sentiment-analysis-en-v1
sentiment-analysis-en-v1 is a machine learning model from CURI-AI. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a multimodal emotion analysis model that processes both audio and text inputs to predict 26 different emotions with regression scores (0-1).
Downloads · 30 days
3
5% of all-time downloads
All-time downloads
57
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.2 KB · 42%
From the Hugging Face model README
This is a multimodal emotion analysis model that processes both audio and text inputs to predict 26 different emotions with regression scores (0-1).
admiration, aesthetic appreciation, awe, anxiety, fear, horror, disgust, calmness, romantic love, sexual desire, nostalgia, interest, surprise, excitement, anger, pride, triumph, contempt, disappointment, empathic pain, sadness, guilt, envy, amusement, awkwardness, adoration
best_model.pth: Trained model weightsconfig.json: Model configurationtraining_history.png: Training progress visualizationimport torch
from transformers import AutoTokenizer
from models.multimodal_emotion_all import MultimodalEmotionAnalyzerAll
# Load model
model = MultimodalEmotionAnalyzerAll(num_emotions=26)
checkpoint = torch.load('best_model.pth', map_location='cpu')
model.load_state_dict(checkpoint['model_state_dict'])
model.eval()
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("roberta-base")
# Process text
text = "I am feeling happy today"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
# Get predictions
with torch.no_grad():
# Note: This model expects both text and audio inputs
# For text-only inference, you may need to modify the forward pass
outputs = model(**inputs)
emotion_scores = torch.sigmoid(outputs)
If you use this model in your research, please cite:
@misc{emotion_analyzer_2024, title={Multimodal Emotion Analyzer}, author={Your Name}, year={2024}, url={https://huggingface.co/CURI-AI/sentiment-analysis-en-v1} }