Views
No views yet
| Label | Precision | Recall | F1-score | Support |
|---|---|---|---|---|
| neutral | 0.86 | 0.80 | 0.83 | 491 |
| hawkish | 0.89 | 0.88 | 0.89 | 495 |
| dovish | 0.86 | 0.93 | 0.89 | 454 |
| Accuracy | 0.87 | 1440 | ||
| Macro avg | 0.87 | 0.87 | 0.87 | 1440 |
| Weighted avg | 0.87 | 0.87 | 0.87 | 1440 |
1from transformers import pipeline
2
3# Load the classifier pipeline
4classifier = pipeline("text-classification", model="mrince/CBRT-RoBERTa-HawkishDovish-Classifier")
5
6# Example sentence from a monetary policy context
7sentence = "On the other hand, the recent deceleration in economic activity may curb services inflation."
8
9# Perform classification
10result = classifier(sentence)
11print(result)
12
13# Output example:
14# [{'label': 'Label_2', 'score': 0.91}]
15
16# Label meanings:
17# - 'hawkish [Label_1]': Tightening bias, upward rate signal. Indicates prioritization of inflation control.
18# - 'dovish [Label_2]' : Easing bias, downward/inflation-tolerant tone. Indicates support for growth/stimulus.
19# - 'neutral [Label_0]': Informational or balanced tone without a clear policy stance.