FiinGroup commited on
Commit
f5584d2
·
verified ·
1 Parent(s): ab0eb2f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -1
README.md CHANGED
@@ -13,13 +13,18 @@ Labels: 0 -> Negative, 1 -> Neutral, 2 -> Positive
13
  Accuracy: 0.903
14
 
15
  ## Example Pipeline
 
 
 
 
16
 
17
  ```python
18
  from transformers import pipeline
19
 
20
  model_path = "FiinGroup/phobert-finetuned"
21
  sentiment_task = pipeline("sentiment-analysis", model=model_path, tokenizer=model_path)
22
- sentiment_task("Covid cases are increasing fast!")
 
23
  ```
24
  Output
25
  ```python
 
13
  Accuracy: 0.903
14
 
15
  ## Example Pipeline
16
+ Please don't forget to install transformers library if you have not done it before
17
+ ```python
18
+ !pip install transformers
19
+ ```
20
 
21
  ```python
22
  from transformers import pipeline
23
 
24
  model_path = "FiinGroup/phobert-finetuned"
25
  sentiment_task = pipeline("sentiment-analysis", model=model_path, tokenizer=model_path)
26
+ sentence = "Covid cases are increasing fast!"
27
+ sentiment_task(sentence)
28
  ```
29
  Output
30
  ```python