Views
No views yet
| Metric | Value |
|---|---|
| Accuracy | 93.2% |
| Precision | 93% |
| Recall | 93% |
| F1-score | 93% |

transformers and use the text classification pipeline:1from transformers import pipeline
2
3model_name = "gabrielnkl/fine-tuned-bert"
4
5classifier = pipeline("text-classification", model=model_name)
6
7text = "This movie was amazing! I really liked the acting and the storyline."
8result = classifier(text)
9
10print(result)
11# [{'label': 'POSITIVE', 'score': 0.98}]
12
13
14O notebook usado para treinar este modelo está disponível no GitHub:
15
16(https://github.com/Gabrielnkl/fine-tuned-bert-model/blob/main/finetuning.py)
17
18