File size: 695 Bytes
d4b0d93
 
 
 
 
 
 
 
c4870c6
 
75b027e
c4870c6
 
 
 
 
 
 
75b027e
c4870c6
75b027e
 
 
 
c4870c6
75b027e
d4b0d93
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
26
27
---
language:
- id
tags:
- indobert
- indobenchmark
- indonlu
---
This is the first classification of sentiment analysis for (redacted) task

### How to import
```python
import torch
from transformers import BertForSequenceClassification, BertTokenizer, BertConfig

tokenizer = BertTokenizer.from_pretrained("nfhakim/sentiment-analysis-c1")
config = BertConfig.from_pretrained("nfhakim/sentiment-analysis-c1")
model = BertForSequenceClassification.from_pretrained("nfhakim/sentiment-analysis-c1", config=config)
```

### How to use
```python
from transformers import pipeline
nlp = pipeline("text-classification", model="nfhakim/sentiment-analysis-c1")

results = nlp("Your input text here")
```