Update README.md
Browse files
README.md
CHANGED
@@ -13,4 +13,13 @@ from transformers import BertForSequenceClassification, BertTokenizer, BertConfi
|
|
13 |
tokenizer = BertTokenizer.from_pretrained("thoriqfy/indobert-emotion-classification")
|
14 |
config = BertConfig.from_pretrained("thoriqfy/indobert-emotion-classification")
|
15 |
model = BertForSequenceClassification.from_pretrained("thoriqfy/indobert-emotion-classification", config=config)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
```
|
|
|
13 |
tokenizer = BertTokenizer.from_pretrained("thoriqfy/indobert-emotion-classification")
|
14 |
config = BertConfig.from_pretrained("thoriqfy/indobert-emotion-classification")
|
15 |
model = BertForSequenceClassification.from_pretrained("thoriqfy/indobert-emotion-classification", config=config)
|
16 |
+
```
|
17 |
+
|
18 |
+
How to use:
|
19 |
+
```python
|
20 |
+
from transformers import pipeline
|
21 |
+
|
22 |
+
nlp = pipeline("text-classification", model="thoriqfy/indobert-emotion-classification")
|
23 |
+
|
24 |
+
results = nlp("Your input text here")
|
25 |
```
|