File size: 645 Bytes
041cb62 9509a81 041cb62 4ad293c 041cb62 0f16d19 041cb62 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
---
language:
- id
tags:
- indobert
- indobenchmark
- indonlu
---
How to import:
```python
from transformers import BertForSequenceClassification, BertTokenizer, BertConfig
tokenizer = BertTokenizer.from_pretrained("thoriqfy/indobert-emotion-classification")
config = BertConfig.from_pretrained("thoriqfy/indobert-emotion-classification")
model = BertForSequenceClassification.from_pretrained("thoriqfy/indobert-emotion-classification", config=config)
```
How to use:
```python
from transformers import pipeline
nlp = pipeline("text-classification", model="thoriqfy/indobert-emotion-classification")
results = nlp("Your input text here")
``` |