{"id":27067978,"url":"https://github.com/prasadhiremath1/spam-classifier","last_synced_at":"2026-05-10T19:04:02.559Z","repository":{"id":286331727,"uuid":"961095618","full_name":"PrasadHiremath1/Spam-Classifier","owner":"PrasadHiremath1","description":"Classifies messages and emails as spam or not spam ","archived":false,"fork":false,"pushed_at":"2025-04-05T18:46:42.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T19:29:09.488Z","etag":null,"topics":["naive-bayes-classifier","python3","scikit-learn","streamlit"],"latest_commit_sha":null,"homepage":"https://spam-classifier-j5dwyghvpewtbsgpgkman8.streamlit.app/","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/PrasadHiremath1.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":"2025-04-05T18:36:18.000Z","updated_at":"2025-04-05T18:46:45.000Z","dependencies_parsed_at":"2025-04-05T19:39:15.462Z","dependency_job_id":null,"html_url":"https://github.com/PrasadHiremath1/Spam-Classifier","commit_stats":null,"previous_names":["prasadhiremath1/spam-classifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrasadHiremath1%2FSpam-Classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrasadHiremath1%2FSpam-Classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrasadHiremath1%2FSpam-Classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrasadHiremath1%2FSpam-Classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PrasadHiremath1","download_url":"https://codeload.github.com/PrasadHiremath1/Spam-Classifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103914,"owners_count":21048245,"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","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":["naive-bayes-classifier","python3","scikit-learn","streamlit"],"created_at":"2025-04-05T20:17:19.499Z","updated_at":"2026-05-10T19:03:57.527Z","avatar_url":"https://github.com/PrasadHiremath1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📧 Spam Classifier - Email/SMS Detection App\n\nThis project is a **Streamlit-based web application** that classifies a given message as **SPAM** or **NOT SPAM** using a machine learning model trained on SMS data.\n\n🚀 **Live Demo**: [Click here to use the app](https://spam-classifier-j5dwyghvpewtbsgpgkman8.streamlit.app/)\n\n---\n\n## 🧠 Features\n\n- Preprocessing with NLTK (stopword removal, stemming, tokenization)\n- Vectorization using **TF-IDF**\n- Spam classification using a **trained machine learning model**\n- Simple and interactive **Streamlit UI**\n- Model and vectorizer are stored using `.pkl` for fast loading\n\n---\n\n## 🛠 Tech Stack\n\n- **Frontend**: Streamlit\n- **Backend**: Python, Scikit-learn\n- **NLP Tools**: NLTK\n- **Model Persistence**: Pickle\n- **Hosting**: Streamlit Cloud\n\n---\n\n## 🔧 How It Works\n\n1. **User inputs** a message (email or SMS).\n2. The message is **cleaned and tokenized** using NLTK.\n3. The message is transformed into TF-IDF features.\n4. The **trained classifier** predicts whether it is SPAM or NOT SPAM.\n5. The result is displayed on the screen.\n\n---\n\n## 🖥️ Local Setup\n# 1. Clone the repo\ngit clone https://github.com/PrasadHiremath1/Spam-Classifier.git\ncd Spam-Classifier\n\n# 2. Create a virtual environment (optional but recommended)\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n\n# 3. Install dependencies\npip install -r requirements.txt\n\n# 4. Run the Streamlit app\nstreamlit run app.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprasadhiremath1%2Fspam-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprasadhiremath1%2Fspam-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprasadhiremath1%2Fspam-classifier/lists"}