-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text Classification for Spam Detection #268
base: main
Are you sure you want to change the base?
Text Classification for Spam Detection #268
Conversation
Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have created a large chunks of commits?
MODEL_FILE = 'jarvis_spam_model.pkl' | ||
|
||
# Function to train and save the model | ||
def train_model(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you training the model? This is an inappropriate. You have to build your model and submit it. Read this conversation
return "Spam" if prediction == 1 else "Not Spam" | ||
|
||
# Entry point for Jarvis integration | ||
if __name__ == '__main__': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No main function should be there. Keep your function name as of file name.
- File name is only
spamDetector.py
Closes: #70
Describe the add-ons or changes you've made 📃
Checklist: ☑️