lucas-leme
commited on
Commit
•
334a67e
1
Parent(s):
754f2a8
First comit
Browse files- README.md +29 -0
- config.json +43 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,3 +1,32 @@
|
|
1 |
---
|
|
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language: pt
|
3 |
license: apache-2.0
|
4 |
+
|
5 |
+
widget:
|
6 |
+
- text: "O futuro de DI caiu 20 bps nesta manhã"
|
7 |
+
example_title: "Example 1"
|
8 |
+
- text: "O Nubank decidiu cortar a faixa de preço da oferta pública inicial (IPO) após revés no humor dos mercados internacionais com as fintechs."
|
9 |
+
example_title: "Example 2"
|
10 |
+
- text: "O Ibovespa acompanha correção do mercado e fecha com alta moderada"
|
11 |
+
example_title: "Example 3"
|
12 |
---
|
13 |
+
|
14 |
+
# FinBertPTBR : Financial Bert PT BR
|
15 |
+
|
16 |
+
FinBertPTBR is a pre-trained NLP model to analyze sentiment of Brazilian Portuguese financial texts. It is built by further training the BERTimbau language model in the finance domain, using a large financial corpus and thereby fine-tuning it for financial sentiment classification.
|
17 |
+
|
18 |
+
## Usage
|
19 |
+
```python
|
20 |
+
from transformers import AutoTokenizer, AutoModel
|
21 |
+
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained("turing-usp/FinBertPTBR")
|
23 |
+
model = AutoModel.from_pretrained("turing-usp/FinBertPTBR")
|
24 |
+
```
|
25 |
+
|
26 |
+
## Authors
|
27 |
+
|
28 |
+
- [Vinicius Carmo](https://www.linkedin.com/in/vinicius-cleves/)
|
29 |
+
- [Julia Pocciotti](https://www.linkedin.com/in/juliapocciotti/)
|
30 |
+
- [Luísa Heise](https://www.linkedin.com/in/lu%C3%ADsa-mendes-heise/)
|
31 |
+
- [Lucas Leme](https://www.linkedin.com/in/lucas-leme-santos/)
|
32 |
+
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/content/drive/Shareddrives/Pesquisa AI + Financ\u0327as/Modelos/language_model/FinBERT PT BR",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2"
|
16 |
+
},
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"LABEL_0": 0,
|
21 |
+
"LABEL_1": 1,
|
22 |
+
"LABEL_2": 2
|
23 |
+
},
|
24 |
+
"layer_norm_eps": 1e-12,
|
25 |
+
"max_position_embeddings": 512,
|
26 |
+
"model_type": "bert",
|
27 |
+
"num_attention_heads": 12,
|
28 |
+
"num_hidden_layers": 12,
|
29 |
+
"output_past": true,
|
30 |
+
"pad_token_id": 0,
|
31 |
+
"pooler_fc_size": 768,
|
32 |
+
"pooler_num_attention_heads": 12,
|
33 |
+
"pooler_num_fc_layers": 3,
|
34 |
+
"pooler_size_per_head": 128,
|
35 |
+
"pooler_type": "first_token_transform",
|
36 |
+
"position_embedding_type": "absolute",
|
37 |
+
"problem_type": "multi_label_classification",
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.25.1",
|
40 |
+
"type_vocab_size": 2,
|
41 |
+
"use_cache": true,
|
42 |
+
"vocab_size": 29794
|
43 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:123352c03b252152acc9d71e6678aad015d9cd5200e4c4abc5f5cc20a48c6866
|
3 |
+
size 435772781
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": false, "do_basic_tokenize": true, "never_split": null, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": "/home/leme/.cache/huggingface/transformers/eecc45187d085a1169eed91017d358cc0e9cbdd5dc236bcd710059dbf0a2f816.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "tokenizer_file": null, "name_or_path": "neuralmind/bert-base-portuguese-cased", "tokenizer_class": "BertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|