Text Classification
Transformers
Joblib
Safetensors
bert
sentiment-analysis
finance
macroeconomics
climate
esg
policy
ensemble
dictionary
finbert
Eval Results (legacy)
text-embeddings-inference
Instructions to use peyterho/macro-sentiment-finbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use peyterho/macro-sentiment-finbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="peyterho/macro-sentiment-finbert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("peyterho/macro-sentiment-finbert") model = AutoModelForSequenceClassification.from_pretrained("peyterho/macro-sentiment-finbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add YAML metadata to fix repo card warning
Browse files
README.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# 🏦 Macroeconomic Sentiment Analysis
|
| 2 |
|
| 3 |
**What it does:** Takes any financial or economic text and tells you whether the sentiment is positive, negative, or neutral — plus whether the tone is hawkish/dovish, whether it signals a crisis, and how much it relates to climate/ESG.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
tags:
|
| 5 |
+
- text-classification
|
| 6 |
+
- sentiment-analysis
|
| 7 |
+
- finance
|
| 8 |
+
- finbert
|
| 9 |
+
- roberta
|
| 10 |
+
- climate
|
| 11 |
+
- esg
|
| 12 |
+
- macroeconomics
|
| 13 |
+
datasets:
|
| 14 |
+
- nickmuchi/financial-classification
|
| 15 |
+
- zeroshot/twitter-financial-news-sentiment
|
| 16 |
+
- FinanceInc/auditor_sentiment
|
| 17 |
+
- pauri32/fiqa-2018
|
| 18 |
+
- climatebert/climate_sentiment
|
| 19 |
+
metrics:
|
| 20 |
+
- accuracy
|
| 21 |
+
- f1
|
| 22 |
+
language:
|
| 23 |
+
- en
|
| 24 |
+
pipeline_tag: text-classification
|
| 25 |
+
model-index:
|
| 26 |
+
- name: macro-sentiment-finbert
|
| 27 |
+
results:
|
| 28 |
+
- task:
|
| 29 |
+
type: text-classification
|
| 30 |
+
name: Financial Sentiment Analysis
|
| 31 |
+
metrics:
|
| 32 |
+
- name: Accuracy (RoBERTa-Large)
|
| 33 |
+
type: accuracy
|
| 34 |
+
value: 0.913
|
| 35 |
+
- name: F1 Macro (RoBERTa-Large)
|
| 36 |
+
type: f1
|
| 37 |
+
value: 0.902
|
| 38 |
+
- name: Accuracy (FinBERT)
|
| 39 |
+
type: accuracy
|
| 40 |
+
value: 0.897
|
| 41 |
+
- name: F1 Macro (FinBERT)
|
| 42 |
+
type: f1
|
| 43 |
+
value: 0.881
|
| 44 |
+
- name: Accuracy (ClimateBERT)
|
| 45 |
+
type: accuracy
|
| 46 |
+
value: 0.889
|
| 47 |
+
- name: F1 Macro (ClimateBERT)
|
| 48 |
+
type: f1
|
| 49 |
+
value: 0.872
|
| 50 |
+
---
|
| 51 |
+
|
| 52 |
# 🏦 Macroeconomic Sentiment Analysis
|
| 53 |
|
| 54 |
**What it does:** Takes any financial or economic text and tells you whether the sentiment is positive, negative, or neutral — plus whether the tone is hawkish/dovish, whether it signals a crisis, and how much it relates to climate/ESG.
|