Downloads · 30 days
11
10% of all-time downloads
takomattyy/finetuned-roberta
finetuned-roberta is a text classification model from takomattyy. Use it when you need a label for a piece of text. The card lists the license as mit.
This model classifies sentiment in Filipino-English service reviews.
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
113
Public
Parameters
125M
997 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
This model classifies sentiment in Filipino-English service reviews.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
model_name = "YOUR_USERNAME/handyhome-sentiment-roberta"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Predict sentiment
text = "Magaling yung service, very professional!"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.softmax(outputs.logits, dim=1)
predicted_class = torch.argmax(predictions, dim=1).item()
labels = ["negative", "neutral", "positive"]
print(f"Sentiment: {labels[predicted_class]}")
Trained on HandyHome service reviews dataset containing Filipino-English mixed language reviews.