File size: 442 Bytes
6e6dffa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
---
license: mit
---
This model is a test for educational proposits.
To use:
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="./model", tokenizer="./model")
# Exemplo de texto para classificação
texts = ["I love this movie!", "This is a terrible movie.", "Awesome!", "Very bad!"]
results = classifier(texts)
for text, result in zip(texts, results):
print(f"Text: {text}\nPrediction: {result}\n") |