Update README.md
Browse files
README.md
CHANGED
|
@@ -8,7 +8,6 @@ metrics:
|
|
| 8 |
- f1
|
| 9 |
base_model:
|
| 10 |
- answerdotai/ModernBERT-large
|
| 11 |
-
new_version: ProsusAI/finbert
|
| 12 |
pipeline_tag: text-classification
|
| 13 |
library_name: transformers
|
| 14 |
tags:
|
|
@@ -47,7 +46,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipe
|
|
| 47 |
|
| 48 |
# Load the pre-trained model and tokenizer
|
| 49 |
model = AutoModelForSequenceClassification.from_pretrained('beethogedeon/Modern-FinBERT-large', num_labels=3)
|
| 50 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
| 51 |
|
| 52 |
# Initialize the NLP pipeline
|
| 53 |
nlp = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
|
|
|
| 8 |
- f1
|
| 9 |
base_model:
|
| 10 |
- answerdotai/ModernBERT-large
|
|
|
|
| 11 |
pipeline_tag: text-classification
|
| 12 |
library_name: transformers
|
| 13 |
tags:
|
|
|
|
| 46 |
|
| 47 |
# Load the pre-trained model and tokenizer
|
| 48 |
model = AutoModelForSequenceClassification.from_pretrained('beethogedeon/Modern-FinBERT-large', num_labels=3)
|
| 49 |
+
tokenizer = AutoTokenizer.from_pretrained('beethogedeon/Modern-FinBERT-large')
|
| 50 |
|
| 51 |
# Initialize the NLP pipeline
|
| 52 |
nlp = pipeline("text-classification", model=model, tokenizer=tokenizer)
|