{"id":25264968,"url":"https://github.com/ahmed-ai-01/nlp","last_synced_at":"2026-05-08T03:01:28.420Z","repository":{"id":222399596,"uuid":"757178390","full_name":"Ahmed-AI-01/NLP","owner":"Ahmed-AI-01","description":"this repo will include all my work regarding NLP","archived":false,"fork":false,"pushed_at":"2024-02-14T00:23:59.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T07:56:02.387Z","etag":null,"topics":["kaggle","kaggle-dataset","nlp","nlp-deep-learning","nlp-library","nlp-machine-learning","nltk","nltk-library","nltk-python","pandas","pandas-python","sklearn","sklearn-classify","sklearn-library","sklearn-metrics","sklearn-pipeline"],"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/Ahmed-AI-01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-02-14T00:20:49.000Z","updated_at":"2024-09-19T15:11:40.000Z","dependencies_parsed_at":"2024-02-14T01:28:45.233Z","dependency_job_id":"53d615c4-b234-4670-8c6c-791ba63c11b3","html_url":"https://github.com/Ahmed-AI-01/NLP","commit_stats":null,"previous_names":["ahmed-ai-01/nlp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmed-AI-01%2FNLP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmed-AI-01%2FNLP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmed-AI-01%2FNLP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmed-AI-01%2FNLP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ahmed-AI-01","download_url":"https://codeload.github.com/Ahmed-AI-01/NLP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423521,"owners_count":20936626,"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":["kaggle","kaggle-dataset","nlp","nlp-deep-learning","nlp-library","nlp-machine-learning","nltk","nltk-library","nltk-python","pandas","pandas-python","sklearn","sklearn-classify","sklearn-library","sklearn-metrics","sklearn-pipeline"],"created_at":"2025-02-12T07:48:35.199Z","updated_at":"2026-05-08T03:01:28.307Z","avatar_url":"https://github.com/Ahmed-AI-01.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Email Classification using NLP\n\nThis project focuses on classifying emails into spam and non-spam categories using Natural Language Processing (NLP) techniques. We'll preprocess the text data, visualize the label distribution, perform feature engineering, and train machine learning models for classification.\n\n## Dataset\n\nThe dataset used for this project can be found on Kaggle: [Email Classification - NLP](https://www.kaggle.com/datasets/datatattle/email-classification-nlp)\n\n### Columns\n\n1. **Message Body**: Contains the email content.\n2. **Label**: Indicates whether the email is spam or non-spam.\n\n## Tasks\n\n### Task 1: Text Cleaning and Preprocessing\n\n- Load the training and testing datasets.\n- Check for missing values and remove them if any.\n- Convert all text to lowercase.\n- Remove stop words.\n- Remove punctuation.\n- Perform stemming or lemmatization.\n\n### Task 2: Data Visualization\n\n- Visualize the distribution of the labels in the training dataset using a histogram, bar chart, or pie chart.\n\n### Task 3: Feature Engineering\n\n- Apply text representation techniques:\n  - Bag of words\n  - TF-IDF\n\n### Task 4: Model Training\n\n- Train SVM model after applying Bag of Words.\n- Train SVM model after applying TF-IDF.\n- Train Random Forest model after applying Bag of Words.\n- Train Random Forest model after applying TF-IDF.\n\n## Evaluation Metrics\n\nEvaluate the performance of the trained models on the testing dataset using the following metrics:\n- Accuracy\n- Precision\n- Recall\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmed-ai-01%2Fnlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmed-ai-01%2Fnlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmed-ai-01%2Fnlp/lists"}