Instructions to use turing-usp/FinBertPTBR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use turing-usp/FinBertPTBR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="turing-usp/FinBertPTBR")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("turing-usp/FinBertPTBR") model = AutoModelForSequenceClassification.from_pretrained("turing-usp/FinBertPTBR") - Notebooks
- Google Colab
- Kaggle
Commit ·
3f4e2cb
1
Parent(s): 4a3994c
add model
Browse files- config.json +3 -3
config.json
CHANGED
|
@@ -11,9 +11,9 @@
|
|
| 11 |
"hidden_dropout_prob": 0.1,
|
| 12 |
"hidden_size": 768,
|
| 13 |
"id2label": {
|
| 14 |
-
"0": "
|
| 15 |
-
"1": "
|
| 16 |
-
"2": "
|
| 17 |
},
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
"intermediate_size": 3072,
|
|
|
|
| 11 |
"hidden_dropout_prob": 0.1,
|
| 12 |
"hidden_size": 768,
|
| 13 |
"id2label": {
|
| 14 |
+
"0": "NEGATIVE",
|
| 15 |
+
"1": "POSITIVE",
|
| 16 |
+
"2": "NEUTRAL"
|
| 17 |
},
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
"intermediate_size": 3072,
|