{"id":31642290,"url":"https://github.com/ram-narayan-gupta-02/sentiment-analysis","last_synced_at":"2025-10-07T03:58:04.166Z","repository":{"id":312511391,"uuid":"1047739815","full_name":"ram-narayan-gupta-02/Sentiment-Analysis","owner":"ram-narayan-gupta-02","description":"LSTM-based Sentiment Analysis on Kaggle movie reviews for Positive, Negative, and Neutral classification.","archived":false,"fork":false,"pushed_at":"2025-10-06T15:16:53.000Z","size":3847,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T17:30:50.945Z","etag":null,"topics":["keras","natural-language-processing","nlp","python","sentiment","sentiment-analysis","tensorflow","text-classification","text-sentiment-analysis"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ram-narayan-gupta-02.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T05:41:06.000Z","updated_at":"2025-10-06T15:16:57.000Z","dependencies_parsed_at":"2025-09-28T15:32:33.506Z","dependency_job_id":null,"html_url":"https://github.com/ram-narayan-gupta-02/Sentiment-Analysis","commit_stats":null,"previous_names":["ram-narayan-gupta-02/chatgpt","ram-narayan-gupta-02/sentiment-analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ram-narayan-gupta-02/Sentiment-Analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ram-narayan-gupta-02%2FSentiment-Analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ram-narayan-gupta-02%2FSentiment-Analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ram-narayan-gupta-02%2FSentiment-Analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ram-narayan-gupta-02%2FSentiment-Analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ram-narayan-gupta-02","download_url":"https://codeload.github.com/ram-narayan-gupta-02/Sentiment-Analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ram-narayan-gupta-02%2FSentiment-Analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717449,"owners_count":26033542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keras","natural-language-processing","nlp","python","sentiment","sentiment-analysis","tensorflow","text-classification","text-sentiment-analysis"],"created_at":"2025-10-07T03:57:57.384Z","updated_at":"2025-10-07T03:58:04.158Z","avatar_url":"https://github.com/ram-narayan-gupta-02.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📜 Sentiment Analysis using LSTM (Kaggle Dataset)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nThis repository contains a **Sentiment Analysis Model** using **LSTM (Long Short-Term Memory)** on the **Kaggle Sentiment Analysis Dataset**.  \nThe model classifies reviews as **Positive**, **Negative**, or optionally **Neutral**.\n\nThe project includes:\n- Training an LSTM model on Kaggle sentiment dataset\n- Saving the trained model and tokenizer\n- Running predictions on single reviews or batch CSVs\n- Support for **Google Colab** and local execution\n\n---\n\n## 🔹 Features\n\n- Deep Learning-based **LSTM model**\n- Tokenization and padding for text preprocessing\n- Single review prediction\n- Colab-ready workflow\n- Optional 3-class sentiment support (Positive / Negative / Neutral)\n\n---\n\n## 📁 Repository Structure\n```bash\n├── Dataset\n|    ├── test.csv\n|    └── train.csv\n├── sentiment_analysis.ipynb   # Colab notebook to train the model\n├── tw.keras                   # Trained LSTM model (after training)\n├── requirements.txt           # Python dependencies\n└── README.md\n```\n\n---\n\n## 🗂 Dataset\n\n- Dataset: [Kaggle Sentiment Analysis Dataset](https://www.kaggle.com/datasets/abhi8923shriv/sentiment-analysis-dataset?select=train.csv)  \n- CSV columns include:\n  - `text` → The review text\n  - `label` → Sentiment label\n    - 0 → Negative  \n    - 1 → Positive  \n    - Optional 2 → Neutral (if extended)\n- Place the CSV file in the project folder or upload to Colab\n\n---\n\n## 🛠 Installation\n\n### 1. Local Setup\n\n```bash\ngit clone https://github.com/yourusername/Sentiment-Analysis.git\ncd Sentiment-Analysis\npython -m venv venv\nsource venv/bin/activate   # Windows: venv\\Scripts\\activate\npip install -r requirements.txt\n```\n\n---\n\n## Google Colab Setup\n```bash\n!pip install tensorflow scikit-learn pickle5 pandas\n```\n\n---\n\n## 🚀 Training the Model\n\n- Load train.csv into the notebook.\n- Preprocess text: tokenization and padding\n- Convert labels to integers (0,1,2 for neutral if used)\n- Train LSTM model\n- Save tw.keras\n- Test a sample prediction in the notebook\n\n---\n\n## 📜 License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n---\n\n## 🤝 Contributing\nFeel free to contribute by submitting a pull request or reporting issues!\n\n---\n\n## 📩 Contact\n📧 Email: [ramnrngupta@gmail.com](mailto:ramnrngupta@gmail.com)\n📌 Linkedin: [Ram Narayan Gupta](https://linkedin.com/in/ram-narayan-gupta)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fram-narayan-gupta-02%2Fsentiment-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fram-narayan-gupta-02%2Fsentiment-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fram-narayan-gupta-02%2Fsentiment-analysis/lists"}