Commit ·
ab9e050
1
Parent(s): c7a8d12
Update README.md
Browse files12345678910111213141516171819202122232425262728293031---license: openrail------language: englishtags:- sentiment-analysis- distilbert---
# Sentiment Analysis with DistilBert
This model is a fine-tuned version of DistilBert for sentiment analysis on the IMDB dataset.
## How the model was trained
This model was trained using the Hugging Face Transformers library. It was trained for 1 epoch on the IMDB dataset, with a batch size of 4 and a learning rate of 5e-5.
## How to use
You can use this model for sentiment analysis. Here's an example of how to do this in Python:
```pythonfrom transformers import pipeline
# Load the modelclassifier = pipeline('sentiment-analysis', model='your-model-name')
# Classify some textresult = classifier("I love this movie!")[0]print(f"label: {result['label']}, with score: {result['score']:.4f}")README.md+28