AgaMiko commited on
Commit
3e827ae
1 Parent(s): cfcb71d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -18,7 +18,6 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
18
 
19
  id2label = {0: "negative", 1: "neutral", 2: "positive"}
20
  tokenizer = AutoTokenizer.from_pretrained("Voicelab/herbert-base-cased-sentiment")
21
-
22
  model = AutoModelForSequenceClassification.from_pretrained("Voicelab/herbert-base-cased-sentiment")
23
 
24
  input = ["Ale fajnie, spadł dzisiaj śnieg! Ulepimy dziś bałwana?"]
@@ -38,6 +37,10 @@ print(input, "--->", prediction)
38
 
39
  ```
40
 
 
 
 
 
41
 
42
  ### Overview
43
  - **Language model:** [allegro/herbert-base-cased](https://huggingface.co/allegro/herbert-base-cased)
 
18
 
19
  id2label = {0: "negative", 1: "neutral", 2: "positive"}
20
  tokenizer = AutoTokenizer.from_pretrained("Voicelab/herbert-base-cased-sentiment")
 
21
  model = AutoModelForSequenceClassification.from_pretrained("Voicelab/herbert-base-cased-sentiment")
22
 
23
  input = ["Ale fajnie, spadł dzisiaj śnieg! Ulepimy dziś bałwana?"]
 
37
 
38
  ```
39
 
40
+ Predicted output:
41
+ ```python
42
+ ['Ale fajnie, spadł dzisiaj śnieg! Ulepimy dziś bałwana?'] ---> positive
43
+ ```
44
 
45
  ### Overview
46
  - **Language model:** [allegro/herbert-base-cased](https://huggingface.co/allegro/herbert-base-cased)