Moritz-Pfeifer
commited on
Commit
·
2822dd8
1
Parent(s):
f245285
Update README.md
Browse files
README.md
CHANGED
@@ -14,7 +14,7 @@ widget:
|
|
14 |
|
15 |
## CentralBankRoBERTa
|
16 |
|
17 |
-
CentralBankRoBERTA is a large language model. It combines an economic [agent classifier](Moritz-Pfeifer/CentralBankRoBERTa-
|
18 |
|
19 |
#### Overview
|
20 |
|
@@ -22,7 +22,7 @@ The SentimentClassifier model is designed to detect whether a given sentence is
|
|
22 |
|
23 |
#### Intended Use
|
24 |
|
25 |
-
The
|
26 |
|
27 |
#### Performance
|
28 |
|
@@ -33,16 +33,16 @@ The AudienceClassifier model is intended to be used for the analysis of central
|
|
33 |
|
34 |
### Usage
|
35 |
|
36 |
-
You can use these models in your own applications by leveraging the Hugging Face Transformers library. Below is a Python code snippet demonstrating how to load and use the
|
37 |
|
38 |
```python
|
39 |
from transformers import pipeline
|
40 |
|
41 |
# Load the SentimentClassifier model
|
42 |
-
|
43 |
|
44 |
# Perform sentiment analysis
|
45 |
-
sentinement_result =
|
46 |
print("Sentiment:", sentinement_result[0]['label'])
|
47 |
```
|
48 |
|
|
|
14 |
|
15 |
## CentralBankRoBERTa
|
16 |
|
17 |
+
CentralBankRoBERTA is a large language model. It combines an economic [agent classifier](Moritz-Pfeifer/CentralBankRoBERTa-agent-classifier) that distinguishes five basic macroeconomic agents with a binary sentiment classifier that identifies the emotional content of sentences in central bank communications.
|
18 |
|
19 |
#### Overview
|
20 |
|
|
|
22 |
|
23 |
#### Intended Use
|
24 |
|
25 |
+
The AgentClassifier model is intended to be used for the analysis of central bank communications where sentiment analysis is essential.
|
26 |
|
27 |
#### Performance
|
28 |
|
|
|
33 |
|
34 |
### Usage
|
35 |
|
36 |
+
You can use these models in your own applications by leveraging the Hugging Face Transformers library. Below is a Python code snippet demonstrating how to load and use the AgentClassifier model:
|
37 |
|
38 |
```python
|
39 |
from transformers import pipeline
|
40 |
|
41 |
# Load the SentimentClassifier model
|
42 |
+
agent_classifier = pipeline("text-classification", model="Moritz-Pfeifer/CentralBankRoBERTa-sentiment-classifier")
|
43 |
|
44 |
# Perform sentiment analysis
|
45 |
+
sentinement_result = agent_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.")
|
46 |
print("Sentiment:", sentinement_result[0]['label'])
|
47 |
```
|
48 |
|