{"id":15105309,"url":"https://github.com/pranam-s/sentiment-analysis-project","last_synced_at":"2026-03-09T02:33:05.132Z","repository":{"id":256023760,"uuid":"854148968","full_name":"pranam-s/sentiment-analysis-project","owner":"pranam-s","description":"A sentiment analysis project for movie reviews","archived":false,"fork":false,"pushed_at":"2024-09-08T14:18:44.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T07:34:43.600Z","etag":null,"topics":["flask","nlp","python","sentiment-analysis","supervised-learning","text-classification"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pranam-s.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}},"created_at":"2024-09-08T14:04:11.000Z","updated_at":"2024-09-08T14:35:56.000Z","dependencies_parsed_at":"2024-09-08T15:37:42.681Z","dependency_job_id":"b4add496-5ebe-4352-b133-3618db1ac428","html_url":"https://github.com/pranam-s/sentiment-analysis-project","commit_stats":null,"previous_names":["pranam-s/sentiment-analysis-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pranam-s/sentiment-analysis-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranam-s%2Fsentiment-analysis-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranam-s%2Fsentiment-analysis-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranam-s%2Fsentiment-analysis-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranam-s%2Fsentiment-analysis-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranam-s","download_url":"https://codeload.github.com/pranam-s/sentiment-analysis-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranam-s%2Fsentiment-analysis-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30280874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:23:26.802Z","status":"ssl_error","status_checked_at":"2026-03-09T02:22:46.175Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flask","nlp","python","sentiment-analysis","supervised-learning","text-classification"],"created_at":"2024-09-25T20:23:17.967Z","updated_at":"2026-03-09T02:33:05.114Z","avatar_url":"https://github.com/pranam-s.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Movie Review Sentiment Analysis\n\nThis project demonstrates a simple sentiment analysis model for movie reviews using Python, scikit-learn, and Flask.\n\n## Setup\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/your-username/sentiment-analysis-project.git\n   cd sentiment-analysis-project\n   ```\n\n2. Create a virtual environment and activate it:\n   ```\n   python -m venv venv\n   source venv/bin/activate  # On Windows, use `venv\\Scripts\\activate`\n   ```\n\n3. Install the required packages:\n   ```\n   pip install -r requirements.txt\n   ```\n\n4. Generate the sample data:\n   ```\n   python data_generator.py\n   ```\n\n5. Train the model:\n   ```\n   python model_trainer.py\n   ```\n\n6. Run the Flask app:\n   ```\n   python app.py\n   ```\n\n7. Open your web browser and go to `http://localhost:5000` to use the sentiment analysis tool.\n\n## Project Structure\n\n- `data_generator.py`: Generates sample movie reviews and sentiments.\n- `model_trainer.py`: Trains the sentiment analysis model using the generated data.\n- `app.py`: Flask application for serving the web interface.\n- `templates/`: Contains HTML templates for the web interface.\n- `static/`: Contains CSS files for styling the web interface.\n- `data/`: Stores the generated movie reviews CSV file.\n- `models/`: Stores the trained model and vectorizer.\n\n## Usage\n\n1. Enter a movie review in the text area on the home page.\n2. Click \"Analyze Sentiment\" to get the predicted sentiment.\n3. View the result and analyze another review if desired.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranam-s%2Fsentiment-analysis-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranam-s%2Fsentiment-analysis-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranam-s%2Fsentiment-analysis-project/lists"}