hanifnoerr commited on
Commit
2b38293
1 Parent(s): 2d5de0b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -61,15 +61,15 @@ This model can be used to determine the sentiment of a text with three possible
61
  ```python
62
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
63
 
64
- Pre-trained = "hanifnoerr/Fine-tuned-Indonesian-Sentiment-Classifier"
65
- tokenizer = AutoTokenizer.from_pretrained(Pre-trained)
66
- model = AutoModelForSequenceClassification.from_pretrained(Pre-trained)
67
  ```
68
  ### make classification
69
  ```python
70
  from transformers import pipeline
71
- pretrained_name = "hanifnoerr/Fine-tuned-Indonesian-Sentiment-Classifier"
72
- class_model = pipeline(tokenizer=pretrained_name, model=pretrained_name)
73
 
74
  test_data = "buku ini jelek sekali"
75
  class_model(test_data)
 
61
  ```python
62
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
63
 
64
+ modelName = "hanifnoerr/Fine-tuned-Indonesian-Sentiment-Classifier"
65
+ tokenizer = AutoTokenizer.from_pretrained(modelName)
66
+ model = AutoModelForSequenceClassification.from_pretrained(modelName)
67
  ```
68
  ### make classification
69
  ```python
70
  from transformers import pipeline
71
+ modelName = "hanifnoerr/Fine-tuned-Indonesian-Sentiment-Classifier"
72
+ class_model = pipeline(tokenizer=modelName, model=modelName)
73
 
74
  test_data = "buku ini jelek sekali"
75
  class_model(test_data)