AdarshZolekar/SMS-Spam-Detector ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Python app that can detect whether an SMS message is spam or normal.

I want it to use text cleaning, TF IDF, and a Naive Bayes model, trained on the SMS Spam Collection dataset. Please make it easy to run from the command line, with a script that trains the model, prints the test accuracy, and then lets me try my own message to see if it is spam or ham.

Please assume the dataset file is called spam.csv and should go in a dataset folder. Keep it lightweight and straightforward, and use the common Python libraries needed for this kind of NLP project. If anything needs to be installed or the dataset format needs a certain setup, include that in the code or README so I can run it without guessing. If you need to check current library usage or docs, feel free to look it up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab