Skip to content
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

Spam Detector #274

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Spam Detector #274

wants to merge 1 commit into from

Conversation

sanga28
Copy link

@sanga28 sanga28 commented Jan 20, 2025

Closes: #70

  • Title: Spam Detection Model Integration with Jarvis
  • Your Name: Sanga Bhattacharjee
  • Open Source Program: SWOC

Describe the add-ons or changes you've made 📃

This PR introduces the spamDetector function in the spamDetector.py file to classify text as "spam" or "not spam" using a pre-trained model.
Key features:
Pre-Trained Model: Loads a trained model from a .pkl file (MODEL_PATH).
Functionality: Accepts a string input, preprocesses it, and returns "spam" or "not spam."
Error Handling: Checks for the existence of the model file and raises an error if not found.
Adherence to Guidelines: The file and function names match, with no training logic included.
This ensures the code is simple, modular, and meets project requirements.

Checklist: ☑️

  • My code follows the Contributing Guidelines & Code of Conduct of this project.
  • This PR does not contain plagiarized content.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • My changes generate no new warnings.

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📃: Text Classification for Spam Detection
1 participant