Moritz-Pfeifer
commited on
Commit
•
6f1af19
1
Parent(s):
ecfdbbd
Update README.md
Browse files
README.md
CHANGED
@@ -34,5 +34,5 @@ from transformers import pipeline
|
|
34 |
audience_classifier = pipeline("text-classification", model="Moritz-Pfeifer/CentralBankRoBERTa-sentiment-classifier")
|
35 |
|
36 |
# Perform audience classification
|
37 |
-
|
38 |
-
print("Sentiment:",
|
|
|
34 |
audience_classifier = pipeline("text-classification", model="Moritz-Pfeifer/CentralBankRoBERTa-sentiment-classifier")
|
35 |
|
36 |
# Perform audience classification
|
37 |
+
sentinement_result = audience_classifier("The early effects of our policy tightening are also becoming visible, especially in sectors like manufacturing and construction that are more sensitive to interest rate changes.")
|
38 |
+
print("Sentiment:", sentinement_result[0]['label'])
|