Skip to content

A web-based NLP model that classifies user reviews as positive or negative using an embedding layer and Simple RNN, built with Streamlit.

Notifications You must be signed in to change notification settings

Shiva-Prasad-Naroju/Review-Sentimental-Analysis-using-SimpleRNN

Repository files navigation

💬 Sentiment Analysis using Simple RNN:

A deep learning-based sentiment classification project that predicts whether a review is Positive or Negative using a Simple RNN architecture. The project includes an embedding layer, and features a user-friendly Streamlit web app to input and test reviews interactively.

🚀 Project Highlights:

✅ Built using TensorFlow/Keras with Simple RNN architecture

🔤 Includes Embedding Layer to handle text inputs

🌐 Web app interface built using Streamlit for real-time predictions

📊 Trained on labeled review dataset (IMDb/Amazon/etc.)

📦 Easy to run locally with a clean, modular codebase

🧠 Model Architecture:

Input Text → Tokenizer → Embedding Layer → Simple RNN → Dense → Output (Positive/Negative) Embedding Layer: Converts text to dense vector representation

Simple RNN: Learns sequential patterns from the reviews

Dense Layer: Final binary classification (sigmoid activation)

🖥️ Web Application (Streamlit UI):

The web app allows users to:

  • Enter a custom review

  • Click to analyze

  • Instantly view whether the review is Positive 😊 or Negative 😞

📸 Screenshots:

Positive Review Output

🧪 Tech Stack:

Python 3.11

TensorFlow / Keras

NumPy, Pandas

Streamlit

⚙️ Setup Instructions:

Windows

venv\Scripts\activate

macOS/Linux

source venv/bin/activate

  • 🔧 3. Install Dependencies

  • pip install -r requirements.txt

  • 🧠 4. Run the App

  • streamlit run app.py

📝 Future Enhancements:

Switch to LSTM/GRU for improved performance

Add visual analytics to display confidence scores

Train on larger or domain-specific datasets

About

A web-based NLP model that classifies user reviews as positive or negative using an embedding layer and Simple RNN, built with Streamlit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published