Views
No views yet
ahmedrachid/FinancialBERT-Sentiment-AnalysisPositive or Negativesingle_label_classification[CLS], [SEP], [PAD], [MASK], [UNK]LABEL_0 = NegativeLABEL_1 = Positive1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="your-username/your-model-name")
4classifier("Apple's Q4 earnings beat expectations amid strong iPhone sales")
5# Output: [{'label': 'LABEL_1', 'score': 0.98}]