{"id":25802301,"url":"https://github.com/satyamtripathi8/email_spam-ham_classification","last_synced_at":"2026-05-11T13:32:17.979Z","repository":{"id":243993121,"uuid":"813996285","full_name":"satyamtripathi8/Email_Spam-Ham_Classification","owner":"satyamtripathi8","description":"This GitHub repository contains a spam-ham classification project using Naive Bayes (MultinomialNB and BernoulliNB). It processes text using tokenization, stopword removal, and TF-IDF vectorization. The model is evaluated using accuracy, precision, recall, and F1-score. Easily install dependencies and run the script for spam detection. 🚀","archived":false,"fork":false,"pushed_at":"2025-02-18T04:47:19.000Z","size":244,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T05:29:39.576Z","etag":null,"topics":["classification","flask","ham","machine-learning","navie-bayes-algorithm","spam"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/satyamtripathi8.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-06-12T06:29:03.000Z","updated_at":"2025-02-18T04:49:28.000Z","dependencies_parsed_at":"2024-06-12T11:57:55.275Z","dependency_job_id":"9620039e-b352-4612-8ab9-e01294cb872f","html_url":"https://github.com/satyamtripathi8/Email_Spam-Ham_Classification","commit_stats":null,"previous_names":["satyamtripathi8/email_spam-ham_classification"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyamtripathi8%2FEmail_Spam-Ham_Classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyamtripathi8%2FEmail_Spam-Ham_Classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyamtripathi8%2FEmail_Spam-Ham_Classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyamtripathi8%2FEmail_Spam-Ham_Classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satyamtripathi8","download_url":"https://codeload.github.com/satyamtripathi8/Email_Spam-Ham_Classification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241037275,"owners_count":19898305,"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":["classification","flask","ham","machine-learning","navie-bayes-algorithm","spam"],"created_at":"2025-02-27T16:57:56.895Z","updated_at":"2026-05-11T13:32:12.936Z","avatar_url":"https://github.com/satyamtripathi8.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spam-Ham Classification using Naive Bayes\n\nThis repository contains a Spam-Ham classification project using Naive Bayes classifiers (`MultinomialNB` and `BernoulliNB`) from `scikit-learn`.\n\n## Table of Contents\n- [Introduction](#introduction)\n- [Dataset](#dataset)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Model](#model)\n- [Evaluation](#evaluation)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Introduction\nSpam detection is a common NLP problem where emails, messages, or text data are classified as either spam or ham (not spam). This project implements a simple classifier using Naive Bayes algorithms.\n\n## Dataset\nThe dataset used for training and testing consists of labeled text messages indicating whether they are spam or ham. A common dataset used for this task is the [SMS Spam Collection](https://www.kaggle.com/datasets/uciml/sms-spam-collection-dataset).\n\n## Installation\nClone the repository and install the dependencies:\n\n```bash\ngit clone https://github.com/your-username/spam-ham-classifier.git\ncd spam-ham-classifier\npip install -r requirements.txt\n```\n\n## Usage\nRun the classification script:\n\n```bash\npython spam_ham_classifier.py\n```\n\n## Model\nThis project uses two types of Naive Bayes classifiers:\n1. **MultinomialNB** - Best suited for text classification problems with term frequency features.\n2. **BernoulliNB** - Works well with binary term occurrence features.\n\nThe text data is processed using the following steps:\n- Tokenization\n- Stopword removal\n- TF-IDF vectorization\n\n## Evaluation\nThe model is evaluated using common metrics such as:\n- Accuracy\n- Precision\n- Recall\n- F1-score\n\nResults are printed at the end of the script.\n\n## Contributing\nContributions are welcome! Feel free to fork the repository and submit pull requests.\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatyamtripathi8%2Femail_spam-ham_classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsatyamtripathi8%2Femail_spam-ham_classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatyamtripathi8%2Femail_spam-ham_classification/lists"}