Downloads · 30 days
13
6% of all-time downloads
postgrammar/disaster-news-vad-model
disaster-news-vad-model is a machine learning model from postgrammar. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model predicts Valence, Arousal, and Dominance (VAD) values for disaster news headlines. It was trained on the EmoBank dataset and fine-tuned on disaster news headlines.
Downloads · 30 days
13
6% of all-time downloads
All-time downloads
220
Public
Repo size
998 MB
Likes
0
Public
Click a slice to open those files.
.bin499 MB · 100%
From the Hugging Face model README
This model predicts Valence, Arousal, and Dominance (VAD) values for disaster news headlines. It was trained on the EmoBank dataset and fine-tuned on disaster news headlines.
from transformers import RobertaTokenizer, AutoModel
import torch
# Load model and tokenizer
tokenizer = RobertaTokenizer.from_pretrained("postgrammar/disaster-news-vad-model")
model = AutoModel.from_pretrained("postgrammar/disaster-news-vad-model")
# Prepare input
text = "Earthquake devastates coastal town, rescue efforts underway"
inputs = tokenizer(text, return_tensors="pt")
# Get predictions
with torch.no_grad():
outputs = model(**inputs)
# Extract VAD values (first three values in the output tuple)
valence, arousal, dominance = outputs[0], outputs[1], outputs[2]
print(f"Valence: {valence.item():.4f}, Arousal: {arousal.item():.4f}, Dominance: {dominance.item():.4f}")
If you use this model, please cite:
@misc{disaster-news-vad-model,
author = {Hamed Yaghoobian},
title = {Disaster News VAD Model},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/postgrammar/disaster-news-vad-model}}
}