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.
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.
from transformers import BertTokenizer, BertForSequenceClassification
from transformers import pipeline
finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-tone',num_labels=3)
tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-tone')
nlp = pipeline("sentiment-analysis", model=finbert, tokenizer=tokenizer)
sentences = ["there is a shortage of capital, and we need extra financing",
"growth is strong and we have plenty of liquidity",
"there are doubts about our finances",
"profits are flat"]
results = nlp(sentences)
print(results) #LABEL_0: neutral; LABEL_1: positive; LABEL_2: negative
Runs of philschmid finbert-tone-endpoint-ds on huggingface.co
14
Total runs
0
24-hour runs
3
3-day runs
3
7-day runs
9
30-day runs
More Information About finbert-tone-endpoint-ds huggingface.co Model
finbert-tone-endpoint-ds huggingface.co
finbert-tone-endpoint-ds huggingface.co is an AI model on huggingface.co that provides finbert-tone-endpoint-ds's model effect (), which can be used instantly with this philschmid finbert-tone-endpoint-ds model. huggingface.co supports a free trial of the finbert-tone-endpoint-ds model, and also provides paid use of the finbert-tone-endpoint-ds. Support call finbert-tone-endpoint-ds model through api, including Node.js, Python, http.
finbert-tone-endpoint-ds huggingface.co is an online trial and call api platform, which integrates finbert-tone-endpoint-ds's modeling effects, including api services, and provides a free online trial of finbert-tone-endpoint-ds, you can try finbert-tone-endpoint-ds online for free by clicking the link below.
philschmid finbert-tone-endpoint-ds online free url in huggingface.co:
finbert-tone-endpoint-ds is an open source model from GitHub that offers a free installation service, and any user can find finbert-tone-endpoint-ds on GitHub to install. At the same time, huggingface.co provides the effect of finbert-tone-endpoint-ds install, users can directly use finbert-tone-endpoint-ds installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
finbert-tone-endpoint-ds install url in huggingface.co: