NikolajMunch commited on
Commit
e5d0400
·
1 Parent(s): a20244c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -39,6 +39,15 @@ print(prediction)
39
  # [{'label': 'Tristhed', 'score': 0.9725030660629272}]
40
  ```
41
 
 
 
 
 
 
 
 
 
 
42
  # Model performance
43
 
44
  **Accuracy** : 81.48
 
39
  # [{'label': 'Tristhed', 'score': 0.9725030660629272}]
40
  ```
41
 
42
+ or
43
+ ```ruby
44
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
45
+
46
+ tokenizer = AutoTokenizer.from_pretrained("NikolajMunch/danish-emotion-classification")
47
+
48
+ model = AutoModelForSequenceClassification.from_pretrained("NikolajMunch/danish-emotion-classification")
49
+ ```
50
+
51
  # Model performance
52
 
53
  **Accuracy** : 81.48