Commit ·
7a9cd8d
1
Parent(s): 0825fd1
fix to classifier loading example in readme
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ The model can be imported from the transformers library by running
|
|
| 20 |
from transformers import BertForSequenceClassification, BertTokenizerFast
|
| 21 |
|
| 22 |
tokenizer = BertTokenizerFast.from_pretrained("RecordedFuture/Swedish-Sentiment-Fear")
|
| 23 |
-
classifier_fear=
|
| 24 |
|
| 25 |
When the model and tokenizer are initialized the model can be used for inference.
|
| 26 |
|
|
|
|
| 20 |
from transformers import BertForSequenceClassification, BertTokenizerFast
|
| 21 |
|
| 22 |
tokenizer = BertTokenizerFast.from_pretrained("RecordedFuture/Swedish-Sentiment-Fear")
|
| 23 |
+
classifier_fear= BertForSequenceClassification.from_pretrained("RecordedFuture/Swedish-Sentiment-Fear")
|
| 24 |
|
| 25 |
When the model and tokenizer are initialized the model can be used for inference.
|
| 26 |
|