Spaces:
Sleeping
Sleeping
jkmaina
commited on
Commit
Β·
028e56d
1
Parent(s):
71ec8d1
Movie Review Sentiment Analysis - BERT
Browse files
README.md
CHANGED
@@ -1,14 +1,52 @@
|
|
1 |
---
|
2 |
-
title: Sentiment
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 5.9.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
11 |
-
short_description:
|
12 |
---
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: Movie Review Sentiment Analyzer
|
3 |
+
emoji: π¬
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
sdk: gradio
|
7 |
sdk_version: 5.9.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
11 |
+
short_description: BERT-powered movie review sentiment analysis
|
12 |
---
|
13 |
|
14 |
+
# Movie Review Sentiment Analyzer
|
15 |
+
|
16 |
+
## Overview π―
|
17 |
+
This Gradio app uses the `zavora/bert-sentiment-imdb` model to analyze movie review sentiments in real-time. The model has been fine-tuned on the IMDB dataset to provide accurate sentiment predictions for movie-related text.
|
18 |
+
|
19 |
+
## Features β¨
|
20 |
+
- Real-time sentiment analysis
|
21 |
+
- Confidence score for each prediction
|
22 |
+
- User-friendly interface
|
23 |
+
- Example reviews for testing
|
24 |
+
- Mobile-responsive design
|
25 |
+
|
26 |
+
## Model Details π€
|
27 |
+
- **Base Model**: bert-base-uncased
|
28 |
+
- **Fine-tuned on**: IMDB dataset
|
29 |
+
- **Task**: Binary Sentiment Analysis
|
30 |
+
- **Model Source**: [zavora/bert-sentiment-imdb](https://huggingface.co/zavora/bert-sentiment-imdb)
|
31 |
+
|
32 |
+
## How to Use π
|
33 |
+
1. Enter your movie review in the text box
|
34 |
+
2. Click the "Submit" button
|
35 |
+
3. View the sentiment analysis results:
|
36 |
+
- Sentiment (Positive/Negative)
|
37 |
+
- Confidence score
|
38 |
+
|
39 |
+
## Technical Details π οΈ
|
40 |
+
Built with:
|
41 |
+
- Gradio 5.9.1
|
42 |
+
- Transformers
|
43 |
+
- PyTorch
|
44 |
+
- BERT model fine-tuned on IMDB dataset
|
45 |
+
|
46 |
+
## Local Development
|
47 |
+
```bash
|
48 |
+
# Install dependencies
|
49 |
+
pip install -r requirements.txt
|
50 |
+
|
51 |
+
# Run the app
|
52 |
+
python app.py
|