Downloads · 30 days
0
YatishW79/cnn-lstm-goemotions
cnn-lstm-goemotions is a text classification model from YatishW79. Use it when you need a label for a piece of text. The card lists the license as mit.
CNN trigram extractor followed by Bidirectional LSTM with additive attention for multi-label emotion classification on GoEmotions (28 labels).
Downloads · 30 days
0
Access
Public
Updated Apr 23, 2026
Repo size
15.1 MB
Likes
0
Public
Click a slice to open those files.
.pt14.9 MB · 99%
From the Hugging Face model README
CNN trigram extractor followed by Bidirectional LSTM with additive attention for multi-label emotion classification on GoEmotions (28 labels).
CS6120 NLP Project — Northeastern University
| Metric | Score |
|---|---|
| Micro-F1 | 0.5371 |
| Macro-F1 | 0.4428 |
| Subset Accuracy | 0.3230 |
| Hamming Accuracy | 0.9543 |
cnn_lstm_model.pt — model weights + config (load with torch.load)vocab.pkl — vocabulary dictionarythresholds_cnn_lstm.pkl — per-class decision thresholds (numpy array, shape 28)import torch, pickle
from lstm_model import CNNLSTMClassifier # from the Space repo
ckpt = torch.load("cnn_lstm_model.pt", map_location="cpu")
cfg = ckpt["config"]
model = CNNLSTMClassifier(**cfg)
model.load_state_dict(ckpt["state_dict"])
model.eval()