Update README.md
Browse files
README.md
CHANGED
|
@@ -23,12 +23,10 @@ Model ini adalah hasil fine-tuning model IndoBERT base untuk tugas klasifikasi s
|
|
| 23 |
## Penggunaan
|
| 24 |
### Use a pipeline as a high-level helper
|
| 25 |
from transformers import pipeline
|
| 26 |
-
|
| 27 |
pipe = pipeline("text-classification", model="Ha1dir/sentimen-indobert")
|
| 28 |
|
| 29 |
-
|
| 30 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 31 |
-
|
| 32 |
tokenizer = AutoTokenizer.from_pretrained("Ha1dir/sentimen-indobert")
|
| 33 |
model = AutoModelForSequenceClassification.from_pretrained("Ha1dir/sentimen-indobert")
|
| 34 |
|
|
|
|
| 23 |
## Penggunaan
|
| 24 |
### Use a pipeline as a high-level helper
|
| 25 |
from transformers import pipeline
|
|
|
|
| 26 |
pipe = pipeline("text-classification", model="Ha1dir/sentimen-indobert")
|
| 27 |
|
| 28 |
+
### Load model directly
|
| 29 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
|
|
| 30 |
tokenizer = AutoTokenizer.from_pretrained("Ha1dir/sentimen-indobert")
|
| 31 |
model = AutoModelForSequenceClassification.from_pretrained("Ha1dir/sentimen-indobert")
|
| 32 |
|