lamsytan commited on
Commit
d282e26
1 Parent(s): 1a3f5e6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -3
README.md CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  A model fine-tuned for sentiment analysis based on [vinai/phobert-base](https://huggingface.co/vinai/phobert-base).
2
 
3
  Labels:
@@ -7,8 +13,9 @@ Labels:
7
 
8
  Dataset: Comments on Shoppe (https://shopee.vn/)
9
  ## Usage
10
- from transformers import AutoTokenizer, AutoModelForSequenceClassification
11
  import torch
 
12
 
13
  tokenizer = AutoTokenizer.from_pretrained("lamsytan/sentiment-analysis-base-phobert")
14
  model = AutoModelForSequenceClassification.from_pretrained("lamsytan/sentiment-analysis-base-phobert")
@@ -26,5 +33,4 @@ print(probabilities.tolist())
26
  # Output:
27
  # [[0.010827462188899517, 0.9538241624832153, 0.035348404198884964]]
28
  # ^ ^ ^
29
- # NEG POS NEU
30
-
 
1
+ ---
2
+ language:
3
+ - vi
4
+ base_model:
5
+ - vinai/phobert-base
6
+ ---
7
  A model fine-tuned for sentiment analysis based on [vinai/phobert-base](https://huggingface.co/vinai/phobert-base).
8
 
9
  Labels:
 
13
 
14
  Dataset: Comments on Shoppe (https://shopee.vn/)
15
  ## Usage
16
+ ```python
17
  import torch
18
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
19
 
20
  tokenizer = AutoTokenizer.from_pretrained("lamsytan/sentiment-analysis-base-phobert")
21
  model = AutoModelForSequenceClassification.from_pretrained("lamsytan/sentiment-analysis-base-phobert")
 
33
  # Output:
34
  # [[0.010827462188899517, 0.9538241624832153, 0.035348404198884964]]
35
  # ^ ^ ^
36
+ # NEG POS NEU