Spam Detection models
Collection
Spam detection models in various languages • 3 items • Updated
This is a spam detection model trained to classify English text as spam or not_spam. It is intended to be used as a first-layer spam filter for email systems, messaging applications or any other text-based communication platform.
The following categories are considered spam:
This model can be used 100% locally on CPU. No processing is done in the cloud, and no data is sent to any third party. This makes it ideal for applications where privacy is a concern, or where internet connectivity is limited.
tanaos_spam_detection_english-0.1.0-py3-none-any.whl fileuv init
uv add tanaos_spam_detection_english-0.1.0-py3-none-any.whl
#--- Linux/MacOS ---
source .venv/bin/activate
#--- Windows ---
.venv\Scripts\activate
python -m tanaos_spam_detection_english --api-key <YOUR_API_KEY> --serve
This will start a local IPC server that serves the model. Inference will be faster for as long as the server is running. Simply type CTRL+C to stop the local server when you're done.from tanaos_spam_detection_english import run_inference
result = run_inference(
text="You won an IPhone 16! Click here to claim your prize.",
api_key="<YOUR_API_KEY>"
)
print(result)
# >>> [{'label': 'spam', 'confidence': 0.9975}]
This model is intended to:
Not intended for: