Downloads · 30 days
5
8% of all-time downloads
noamiman/roberta-finetuned-blog-analysis-10-labels
roberta-finetuned-blog-analysis-10-labels is a text classification model from noamiman. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a high-precision Multi-output Regression model fine-tuned from DeBERTa-v3-small. Unlike standard classifiers that assign a text to a single category, this model predicts 10 continuous scores (0-10) simul…
Downloads · 30 days
5
8% of all-time downloads
All-time downloads
61
Public
Parameters
142M
1.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 67%
From the Hugging Face model README
This model is a high-precision Multi-output Regression model fine-tuned from DeBERTa-v3-small. Unlike standard classifiers that assign a text to a single category, this model predicts 10 continuous scores (0-10) simultaneously. Each score represents the "intensity" or "vibe" of a travel destination across different experiential dimensions.
The model serves as the analytical engine for the RouteMaker project, transforming raw travel blog descriptions into structured, quantifiable data for intelligent itinerary building.
To achieve "large model" reasoning in a "small model" footprint (suitable for real-time edge processing on a MacBook Air), we employed Knowledge Distillation:
The model outputs a numerical value for each of the following:
Since this is a regression model, it is best used with the AutoModelForSequenceClassification but treated as a scorer.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "noamiman/roberta-finetuned-blog-analysis-10-labels"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "An incredible viewpoint on top of a mountain overlooking the beautiful remote Thung Yang beach. Perfect for sunsets."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
outputs = model(**inputs)
scores = outputs.logits[0].tolist()
labels = ["Romance", "Family", "Cost", "Nature", "Adventure", "Culture", "Food", "Relaxation", "Service", "Accessibility"]
results = dict(zip(labels, [round(s, 2) for s in scores]))
print(results)