File size: 546 Bytes
8de7ea8
 
 
 
 
 
 
 
 
 
 
 
 
3e82bce
 
8de7ea8
3e82bce
 
8de7ea8
3e82bce
 
8de7ea8
09db3e6
8de7ea8
 
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
---
language: en
tags:
- text-classification
- tensorflow
license: mit
---
## Usage

```python

from transformers import RobertaTokenizerFast, TFRobertaForSequenceClassification, pipeline

tokenizer = RobertaTokenizerFast.from_pretrained("cappuch/Emotions_BERT")
model = TFRobertaForSequenceClassification.from_pretrained("cappuch/Emotions_BERT")

classific = pipeline('sentiment-analysis', 
                    model='cappuch/Emotions_BERT')

labels = classific("Hello!")
print(labels)

#[{'label': 'neutral', 'score': 0.9964383244514465}]
```