File size: 802 Bytes
c7a8d12 ab9e050 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
license: openrail
---
---
language: english
tags:
- 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:
```python
from transformers import pipeline
# Load the model
classifier = pipeline('sentiment-analysis', model='your-model-name')
# Classify some text
result = classifier("I love this movie!")[0]
print(f"label: {result['label']}, with score: {result['score']:.4f}")
|