yiyanghkust commited on
Commit
134a064
1 Parent(s): 7f9aabf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -1
README.md CHANGED
@@ -5,4 +5,22 @@ tags:
5
  - forward-looking-statement
6
  widget:
7
  - text: "We expect the age of our fleet to enhance availability and reliability due to reduced downtime for repairs. "
8
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  - forward-looking-statement
6
  widget:
7
  - text: "We expect the age of our fleet to enhance availability and reliability due to reduced downtime for repairs. "
8
+ ---
9
+
10
+ Forward-looking statements (FLS) inform investors of managers’ beliefs and opinions about firm's future events or results. Identifying forward-looking statements from corporate reports can assist investors in financial analysis. FinBERT-FLS is a FinBERT model fine-tuned on 3,500 manually annotated sentences from Management Discussion and Analysis section of annual reports of Russell 3000 firms.
11
+
12
+ # How to use
13
+ You can use this model with Transformers pipeline for sentiment analysis.
14
+ ```python
15
+ # tested in transformers==4.18.0
16
+ from transformers import BertTokenizer, BertForSequenceClassification, pipeline
17
+
18
+ finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-fls',num_labels=3)
19
+ tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-fls')
20
+ nlp = pipeline("text-classification", model=finbert, tokenizer=tokenizer)
21
+ results = nlp('We expect the age of our fleet to enhance availability and reliability due to reduced downtime for repairs.')
22
+ print(results) # [{'label': 'Specific FLS', 'score': 0.77278733253479}]
23
+
24
+ ```
25
+
26
+ Visit [FinBERT.AI](https://finbert.ai/) for more details on the recent development of FinBERT.