Downloads · 30 days
3
23% of all-time downloads
namurice/horror-fear-roberta
horror-fear-roberta is a machine learning model from namurice. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a RoBERTa-based classifier fine-tuned on horror game reviews to detect fear intensity.
Downloads · 30 days
3
23% of all-time downloads
All-time downloads
13
Public
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.pt997 MB · 67%
From the Hugging Face model README
This model is a RoBERTa-based classifier fine-tuned on horror game reviews to detect fear intensity.
Usage:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("namurice/horror-fear-roberta")
tokenizer = AutoTokenizer.from_pretrained("namurice/horror-fear-roberta")
text = "I couldn't stop shaking after playing this level."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
probs = logits.softmax(dim=-1)
fear_score = probs[0, 1].item() # assuming label 1 is 'fear'
print(f"Fear intensity: {fear_score:.2f}")