This project is aimed at building a classifier for SMS messages to automatically categorize them into predefined categories such as spam or ham (non-spam). The classifier utilizes machine learning techniques to learn from labeled SMS data and make predictions on unseen messages.
- Introduction
- Installation
- Usage
- Dataset
- Model Training
- Evaluation
- Contributing
- License
The SMS Classifier project is developed to assist in filtering and categorizing SMS messages into relevant categories automatically. With the increasing volume of SMS messages, particularly with the rise of spam messages, this classifier aims to streamline the process of segregating important messages from unwanted ones.
To install and run this project locally, follow these steps:
Clone the repository:
git clone https://github.com/Prathamaryaaa/SMS_Classifier.git
Navigate to the project directory:
cd SMS-classifier
Install the required dependencies:
pip install -r requirements.txt
To use the SMS Classifier:
- Ensure you have installed all dependencies.
- Prepare your SMS data or use the provided dataset.
- Train the model using the provided training script or your custom implementation.
- Evaluate the model's performance.
- Utilize the trained model to classify new SMS messages.
The dataset used for training and testing the SMS Classifier is not included in this repository due to licensing restrictions. However, you can use your own dataset or find similar datasets online. Ensure your dataset is properly formatted with labeled categories (e.g., spam, ham).
The model training process involves preprocessing the text data, vectorizing it, and training a classification algorithm. You can find the implementation details in the train_model.py script.
To train the model, execute the following command:
python train_model.py
Evaluation metrics such as accuracy, precision, recall, and F1-score are used to assess the performance of the classifier. You can find the evaluation script in evaluate_model.py.
To evaluate the model, execute the following command:
python evaluate_model.py
Contributions to this project are welcome. Feel free to open issues, submit pull requests, or suggest new features.
For any inquiries or suggestions, please contact [email protected].