Downloads · 30 days
36
12% of all-time downloads
logicalqubit/deberta-v3-large-world-news-sentiment-classifier
deberta-v3-large-world-news-sentiment-classifier is a text classification model from logicalqubit. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of microsoft/deberta-v3-large for multi-class classification of news headlines. The model classifies headlines into one of 3 categories:
Downloads · 30 days
36
12% of all-time downloads
All-time downloads
293
Public
Parameters
435M
1.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.7 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/deberta-v3-large for multi-class classification of news headlines.
The model classifies headlines into one of 3 categories:
Input
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="logicalqubit/deberta-v3-large-world-news-sentiment-classifier",
tokenizer="logicalqubit/deberta-v3-large-world-news-sentiment-classifier",
top_k=None,
device=-1
)
texts = [
"18 people sent to the hospital after mobile lounge crashes at Washington D.C.-area airport",
]
results = classifier(texts)
for text, scores in zip(texts, results):
print(f"\n>>> {text}")
for s in scores:
print(f" {s['label']:>8} : {s['score']:.4f}")
Output
Device set to use cpu
>>> 18 people sent to the hospital after mobile lounge crashes at Washington D.C.-area airport
negative : 0.9998
neutral : 0.0001
positive : 0.0001