DeBERTa v3 Large Business News Sentiment Classifier
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:
- positive
- neutral
- negative
Input
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="logicalqubit/deberta-v3-large-business-news-sentiment-classifier",
tokenizer="logicalqubit/deberta-v3-large-business-news-sentiment-classifier",
top_k=None,
device=-1
)
texts = [
"AMD surges after event highlighting AI-driven growth keeps analysts bullish",
]
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
>>> AMD surges after event highlighting AI-driven growth keeps analysts bullish
positive : 1.0000
negative : 0.0000
neutral : 0.0000
- Downloads last month
- 4
Model tree for logicalqubit/deberta-v3-large-business-news-sentiment-classifier
Base model
microsoft/deberta-v3-large