Compare commits

..

10 Commits

Author SHA1 Message Date
Yi 4921590d3c Update README.md 2022-10-17 00:35:39 +00:00
yiyanghkust 69507fb7da Add TF weights (#2)
- Add TF weights (210284e38535b69d56a216e26a1100a5e08850fb)


Co-authored-by: Joao Gante <joaogante@users.noreply.huggingface.co>
2022-06-09 12:05:27 +00:00
yiyang 95cb77356c captialize label 2022-05-13 15:05:17 +08:00
Yi a40cd2e63c Update config.json 2021-10-15 06:49:11 +00:00
Yi 1a5e5eb5dd Update config.json 2021-10-15 06:27:31 +00:00
Yi 5c3a34ef12 Delete tokenizer_config.json 2021-10-15 06:24:12 +00:00
Yi ff73928c7d Create tokenizer_config.json 2021-10-15 06:23:22 +00:00
Yi 9d4f8639d6 Update config.json 2021-10-15 06:21:32 +00:00
Yi e19182e3d5 Update README.md 2021-10-15 06:13:58 +00:00
Yi 5cd4752a16 Update config.json 2021-10-15 06:13:29 +00:00
3 changed files with 16 additions and 11 deletions

View File

@ -4,7 +4,7 @@ tags:
- financial-sentiment-analysis
- sentiment-analysis
widget:
- text: "Stocks rallied and the British pound gained."
- text: "growth is strong and we have plenty of liquidity"
---
`FinBERT` is a BERT model pre-trained on financial communication text. The purpose is to enhance financial NLP research and practice. It is trained on the following three financial communication corpus. The total corpora size is 4.9B tokens.
@ -14,10 +14,13 @@ widget:
More technical details on `FinBERT`: [Click Link](https://github.com/yya518/FinBERT)
Please check out our working paper [`FinBERT—A Deep Learning Approach to Extracting Textual Information`](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3910214).
This released `finbert-tone` model is the `FinBERT` model fine-tuned on 10,000 manually annotated (positive, negative, neutral) sentences from analyst reports. This model achieves superior performance on financial tone analysis task. If you are simply interested in using `FinBERT` for financial tone analysis, give it a try.
If you use the model in your academic work, please cite the following paper:
Huang, Allen H., Hui Wang, and Yi Yang. "FinBERT: A Large Language Model for Extracting Information from Financial Text." *Contemporary Accounting Research* (2022).
# How to use
You can use this model with Transformers pipeline for sentiment analysis.
```python

View File

@ -1,18 +1,17 @@
{
"architectures": [
"architectures": [
"BertForSequenceClassification"
],
"id2label": {
"0": "neutral",
"1": "positive",
"2": "negative"
"0": "Neutral",
"1": "Positive",
"2": "Negative"
},
"label2id": {
"positive": 1,
"negative": 2,
"neutral": 0
"Positive": 1,
"Negative": 2,
"Neutral": 0
},
"model_type": "bert",
"attention_probs_dropout_prob": 0.1,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,

BIN
tf_model.h5 (Stored with Git LFS) Normal file

Binary file not shown.