sentence-transformers
Safetensors
setfit
English
bert
dlp
data-loss-prevention
pii
security
spidercob
Eval Results (legacy)
Instructions to use Sumeetgpt/dlp-intent-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Sumeetgpt/dlp-intent-classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Sumeetgpt/dlp-intent-classifier") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use Sumeetgpt/dlp-intent-classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("Sumeetgpt/dlp-intent-classifier") - Notebooks
- Google Colab
- Kaggle
DLP Intent Classifier
Fine-tuned SetFit model for Data Loss Prevention intent classification. Part of the Spidercob DLP platform.
Model Description
This model classifies text snippets that triggered DLP regex patterns into one of four categories to reduce false positives:
| Label | Description |
|---|---|
REAL_DATA |
Genuine sensitive data (PII, credentials, secrets) |
TEST_DATA |
Synthetic/mock data used in tests or examples |
DOCUMENTATION |
Documentation examples, tutorials, placeholder values |
NOISE |
Random strings, hashes, or non-sensitive matches |
Base model: sentence-transformers/all-MiniLM-L6-v2
Framework: SetFit (few-shot fine-tuning)
Test accuracy: 94.25%
Usage
from setfit import SetFitModel
model = SetFitModel.from_pretrained("Sumeetgpt/dlp-intent-classifier")
predictions = model.predict(["sk-proj-abc123XYZ", "test_api_key_placeholder"])
print(predictions) # ['REAL_DATA', 'TEST_DATA']
Intended Use
Used inside the Spidercob DLP engine to verify whether regex-matched findings are genuinely sensitive before blocking or alerting. Blocks on REAL_DATA confidence > 0.7; allows through on TEST_DATA confidence > 0.8.
Training Data
Trained on curated examples spanning:
- Real PII samples (anonymized): emails, SSNs, credit cards, API keys, passwords
- Synthetic test data from
faker,factory_boy, pytest fixtures - Documentation examples from popular libraries
- Noise patterns (random strings, base64, UUIDs)
Limitations
- Optimized for English text
- Best performance on short text snippets (< 512 tokens)
- Not a replacement for regex-based pattern matching — meant as a downstream filter
- Downloads last month
- 14
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for Sumeetgpt/dlp-intent-classifier
Base model
nreimers/MiniLM-L6-H384-uncased Quantized
sentence-transformers/all-MiniLM-L6-v2Evaluation results
- accuracyself-reported0.943