Spaces:
Runtime error
Runtime error
|
Download README.md from Maqs00d00786/Sentiment_analysis: direct link, hf CLI and curl.
- Browser
- Download file 1.49 kB
-
https://huggingface.co/spaces/Maqs00d00786/Sentiment_analysis/resolve/main/README.md
- Command line
-
hf download hf://spaces/Maqs00d00786/Sentiment_analysis/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Maqs00d00786/Sentiment_analysis/resolve/main/README.md
1.49 kB
| title: IMDB Sentiment Classifier | |
| emoji: π¬ | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 4.0.0 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| # π¬ IMDB Sentiment Classifier | |
| A binary sentiment classifier fine-tuned on the IMDB movie reviews dataset using LoRA (Low-Rank Adaptation) with DistilBERT (β€ 110M parameters). | |
| ## π About the Model | |
| - **Model Type:** Binary Sentiment Classification | |
| - **Base Model:** `distilbert-base-uncased` | |
| - **Training Dataset:** IMDB Dataset (50K movie reviews) | |
| - **Task:** Classify text as Positive or Negative sentiment | |
| - **Fine-tuning Method:** LoRA (Low-Rank Adaptation) | |
| - **Parameters:** ~66M total, ~890K trainable with LoRA | |
| ## π Features | |
| - **Single Review Analysis:** Enter any movie review text | |
| - **Batch Processing:** Analyze multiple reviews at once | |
| - **File Upload:** Upload `.txt` or `.csv` files for analysis | |
| - **Confidence Scores:** See how confident the model is | |
| - **Visual Feedback:** Color-coded results with emojis | |
| ## π Example Results | |
| | Review | Sentiment | Confidence | | |
| |--------|-----------|------------| | |
| | "This movie was absolutely fantastic!" | Positive π | 98% | | |
| | "Terrible film, waste of time." | Negative π | 95% | | |
| | "Average movie, nothing special." | Negative π | 72% | | |
| ## π οΈ Technical Details | |
| ### Model Architecture | |
| ```python | |
| Model: DistilBERT + LoRA | |
| - Base: distilbert-base-uncased | |
| - LoRA Rank: 8 | |
| - Trainable Parameters: ~890K (1.35% of total) | |
| - Max Sequence Length: 256 tokens |