Instructions to use areumtecnologia/bert-text-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use areumtecnologia/bert-text-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="areumtecnologia/bert-text-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("areumtecnologia/bert-text-classification") model = AutoModelForSequenceClassification.from_pretrained("areumtecnologia/bert-text-classification") - Notebooks
- Google Colab
- Kaggle
This model is a test for educational proposits.
To use:
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="areumtecnologia/bert-text-classification", tokenizer="areumtecnologia/bert-text-classification")
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")
- Downloads last month
- 2