Text Classification
Transformers
PyTorch
Safetensors
English
bert
finance
financial
news
sentiment-analysis
finbert
transfomer
financial-news
financial-news-sentiment
text-embeddings-inference
Instructions to use project-aps/finbert-finetune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use project-aps/finbert-finetune with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="project-aps/finbert-finetune")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("project-aps/finbert-finetune") model = AutoModelForSequenceClassification.from_pretrained("project-aps/finbert-finetune") - Notebooks
- Google Colab
- Kaggle
Added Acknowledgements in README.md
Browse files
README.md
CHANGED
|
@@ -166,4 +166,22 @@ label_map = {0: "neutral", 1: "negative", 2: "positive"}
|
|
| 166 |
print(f"Text : {text}")
|
| 167 |
print(f"Sentiment: {label_map[predicted_class]}")
|
| 168 |
|
| 169 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
print(f"Text : {text}")
|
| 167 |
print(f"Sentiment: {label_map[predicted_class]}")
|
| 168 |
|
| 169 |
+
```
|
| 170 |
+
---
|
| 171 |
+
## Acknowledgements
|
| 172 |
+
|
| 173 |
+
We gratefully acknowledge the creators and maintainers of the resources used in this project:
|
| 174 |
+
|
| 175 |
+
- **[ProsusAI/FinBERT](https://huggingface.co/ProsusAI/finbert)** – A pre-trained BERT model specifically designed for financial sentiment analysis, which served as the foundation for our fine-tuning efforts.
|
| 176 |
+
|
| 177 |
+
- **[FinGPT Sentiment Train Dataset](https://huggingface.co/datasets/FinGPT/fingpt-sentiment-train)** – The dataset used for fine-tuning, containing a large collection of finance-related news headlines and sentiment annotations.
|
| 178 |
+
|
| 179 |
+
- **[Financial PhraseBank Dataset](https://www.researchgate.net/publication/251231364_FinancialPhraseBank-v10)** – A widely used benchmark dataset for financial sentiment classification, including the *All Agree* and *All Combined* subsets.
|
| 180 |
+
|
| 181 |
+
- **[FiQA + PhraseBank Kaggle Merged Dataset](https://www.kaggle.com/datasets/sbhatti/financial-sentiment-analysis/data)** – A merged dataset combining FiQA and Financial PhraseBank entries, used for broader benchmarking of sentiment performance.
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
We thank these contributors for making their models and datasets publicly available, enabling high-quality research and development in financial NLP.
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
---
|