Moritz-Pfeifer
commited on
Commit
·
ecfdbbd
1
Parent(s):
899892d
Update README.md
Browse files
README.md
CHANGED
@@ -31,8 +31,8 @@ You can use these models in your own applications by leveraging the Hugging Face
|
|
31 |
from transformers import pipeline
|
32 |
|
33 |
# Load the AudienceClassifier model
|
34 |
-
audience_classifier = pipeline("
|
35 |
|
36 |
# Perform audience classification
|
37 |
sentinemnt_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
|
|
|
31 |
from transformers import pipeline
|
32 |
|
33 |
# Load the AudienceClassifier model
|
34 |
+
audience_classifier = pipeline("text-classification", model="Moritz-Pfeifer/CentralBankRoBERTa-sentiment-classifier")
|
35 |
|
36 |
# Perform audience classification
|
37 |
sentinemnt_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:", sentinemnt_result[0]['label'])
|