hanifnoerr
commited on
Commit
•
2b38293
1
Parent(s):
2d5de0b
Update README.md
Browse files
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 |
-
|
65 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
66 |
-
model = AutoModelForSequenceClassification.from_pretrained(
|
67 |
```
|
68 |
### make classification
|
69 |
```python
|
70 |
from transformers import pipeline
|
71 |
-
|
72 |
-
class_model = pipeline(tokenizer=
|
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)
|