📃: Text Classification for Spam Detection
:red_circle: Title : Text Classification for Spam Detection
:red_circle: Aim : Create a text classification system to detect spam messages using machine learning techniques.
:red_circle: Brief Explanation :
- Gather a dataset of text messages labeled as spam or not spam.
- Preprocess the text data and extract relevant features.
- Train a machine learning model (such as Naive Bayes, SVM, or logistic regression) to classify messages as spam or not spam.
- Develop an interface where users can input text messages and receive predictions on whether they are spam or not.
Screenshots 📷
N/A
:white_check_mark: To be Mentioned while taking the issue :
- Full name :
- What is your participant role? (Mention the Open Source Program name. Eg. GSSOC, SSOC, JWOC, etc.)
Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎
Full name : Siddharth Gupta GSSoc'24 Extended
Please assign this topic to me
@sid7219 @saniyaahemad12 tell me the approach and dataset used for the same?
Approach: Dataset : Use the public dataset "SMS spam collection dataset" Text preprocessing : using libraries like pandas, nltk to tokenizing, lowering, remove stop words and perform stemming or lemmatization. Feature extraction : extract features using TF-IDF vectorizer Train the model : for training, use naive bayes (good for classification tasks) User interface : develop using streamlit components
Name : Ramu Role : GSSoC contributor
Assign this issue to me, to work on this!
Here is the approach for text classification for spam detection Data Collection: Use a labeled dataset like the SMS Spam Collection dataset. Data Preprocessing: Clean text by removing special characters and stopwords. Tokenize and apply stemming/lemmatization. Feature Extraction: Use TF-IDF to convert text into numerical vectors. Optionally, use Bag of Words model. Model Selection: Train models using Naive Bayes, SVM, and Logistic Regression. Model Training and Testing: Split data into training/testing sets, apply cross-validation. Model Evaluation: Use accuracy, precision, recall, and F1-score to evaluate performance. Interface Development: Develop a user interface with Tkinter for input and spam prediction. If you like the technique please assign this topic to me.
@ramu-nukavarapu In PR attach the screenshot of the accuracy of the model during training and testing.
@Avdhesh-Varshney okay
Add hackotoberfest label as well
i like to solve this issue please assign it to me
Name : Aakash
i like to solve this issue please assign it to me @Avdhesh-Varshney
@Avdhesh-Varshney I Like to solve this issue ,please assign it to me
@Avdhesh-Varshney I'll work on that, thank you for assigning me this task!
Hi @Avdhesh-Varshney I can work on this issue, Please assign this issue to me
Name: Archita Saha Open Source Program: SSOC4
I have experience with machine learning and am excited to implement this spam detection system. Looking forward to working on this! Here's an overview of the apporach that I will use:
- Use a clean labeled dataset from Kaggle to begin with.
- Perform text preprocessing.
- Apply feature extraction using techniques like TF-ID Vectorizer.
- Train and evaluate a model
- Build a minimal frontend where users can input a message and get instant spam/non-spam predictions.
I’m confident in delivering a clean, well-documented solution, and I’ll make sure to follow all contribution guidelines. I request you to kindly assign this issue to me.
Hi @architasaha21
Build a minimal frontend where users can input a message and get instant spam/non-spam predictions.
You have to integrate the model with jarvis streamlit interface, No need to create the separate FE app
@architasaha21 What's the updates?
Hey @Avdhesh-Varshney , This Issue has not been solved for about a month, please assign this to me :)
@007-SARANG If you stuck, plz connect with me!
Ok @Avdhesh-Varshney I have dm you on discord
Name: Smriti pandey I am gssoc'25 contributor please assign me here, I want to contribute in this issue