FredrikMoller
commited on
Commit
•
b6a482b
1
Parent(s):
ba30f5b
fix to loading classifier 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 |
|