Commit ·
958890c
1
Parent(s): db6c675
Update README.md
Browse files
README.md
CHANGED
|
@@ -68,10 +68,10 @@ model = AutoModelForSequenceClassification.from_pretrained(Pre-trained)
|
|
| 68 |
### make classification
|
| 69 |
```python
|
| 70 |
pretrained_name = "hanifnoerr/Fine-tuned-Indonesian-Sentiment-Classifier"
|
| 71 |
-
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
```
|
| 76 |
output: [{'label': 'negative', 'score': 0.9996247291564941}]
|
| 77 |
|
|
|
|
| 68 |
### make classification
|
| 69 |
```python
|
| 70 |
pretrained_name = "hanifnoerr/Fine-tuned-Indonesian-Sentiment-Classifier"
|
| 71 |
+
sentimen = pipeline(tokenizer=pretrained_name, model=pretrained_name)
|
| 72 |
|
| 73 |
+
kalimat = "buku ini jelek sekali"
|
| 74 |
+
sentimen(kalimat)
|
| 75 |
```
|
| 76 |
output: [{'label': 'negative', 'score': 0.9996247291564941}]
|
| 77 |
|