FredrikMoller commited on
Commit
b6a482b
1 Parent(s): ba30f5b

fix to loading classifier example in readme

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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= load_classifier("RecordedFuture/Swedish-Sentiment-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