Instructions to use br090491/bert-sst2-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use br090491/bert-sst2-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="br090491/bert-sst2-finetuned")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("br090491/bert-sst2-finetuned") model = AutoModelForSequenceClassification.from_pretrained("br090491/bert-sst2-finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Model Card for Model ID
- Model Details
- Uses
- Bias, Risks, and Limitations
- How to Get Started with the Model
- Training Details
- Evaluation
- Model Examination [optional]
- Environmental Impact
- Technical Specifications [optional]
- Citation [optional]
- Glossary [optional]
- More Information [optional]
- Model Card Authors [optional]
- Model Card Contact
Model Card for Model ID
This is a fine tuned BERT for binary sentiment on SST2 that classifies the sentences as Positive or Negative snetiments. Built upon original bert-base-uncased model
Model Details
Model Description
Starting from a bert-base uncased model I finetuned the model on SST2 to give two output classifications based on the input sentence. The classification sentiment can be either Positive (1) or Negative (0)
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
- Developed by: br090491
- Funded by None
- Shared by br090491
- Model type: Classification
- Language(s) (NLP): English
- License: apache-2.0
- Finetuned from model [optional]: bert-base-uncased
Model Sources [optional]
- Repository: [bert-sst2-finetuned]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
To classify if the sentiment of a sentence is positive or negative
Direct Use
[More Information Needed]
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
Anything apart from positive or negative sentiment analysis of a sentence
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
from transformers import pipeline
classifier = pipeline("text-classification", model="br090491/bert-sst2-finetuned")
print(classifier("This movie was absolutely fantastic, I loved it!"))
print(classifier("This film was a complete waste of time."))
print(classifier("Add your own sentence"))
# [{'label': 'positive', 'score': 0.9998}]
[More Information Needed]
Training Details
Training Data
[More Information Needed]
Training Procedure
Preprocessing [optional]
[More Information Needed]
Training Hyperparameters
- Training regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
Fine-tuned on SST-2, this model reaches 92.5% accuracy on the validation set.
Accuracy is the right metric here because this is a balanced binary classifier — each input gets one of two labels and the classes are roughly even, so the fraction correct is a faithful summary. (Perplexity does not apply: it scores next-token language models, not classifiers.)
Summary
Model Examination [optional]
[More Information Needed]
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
[More Information Needed]
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]
- Downloads last month
- 32
Model tree for br090491/bert-sst2-finetuned
Base model
google-bert/bert-base-uncased