Downloads ยท 30 days
14
2% of all-time downloads
AventIQ-AI/BERT-Spam-Job-Posting-Detection-Model
BERT-Spam-Job-Posting-Detection-Model is a machine learning model from AventIQ-AI. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A BERT-based binary classifier fine-tuned to detect whether a job posting is fake or real. Ideal for job portals, recruitment platforms, and fraud detection in job advertisements.
Downloads ยท 30 days
14
2% of all-time downloads
All-time downloads
597
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB ยท 100%
From the Hugging Face model README
A BERT-based binary classifier fine-tuned to detect whether a job posting is fake or real. Ideal for job portals, recruitment platforms, and fraud detection in job advertisements.
bert-base-uncased| Field | Value |
|---|---|
| Base Model | bert-base-uncased |
| Dataset | Custom labeled job postings |
| Framework | PyTorch with Transformers |
| Epochs | 3 |
| Batch Size | 16 |
| Max Length | 128 tokens |
| Optimizer | AdamW |
| Loss | CrossEntropyLoss |
| Device | CUDA-enabled GPU |
| Metric | Score |
|---|---|
| Accuracy | 0.97 |
| Precision | 0.81 |
from transformers import BertTokenizerFast, BertForSequenceClassification
import torch
model_name = "AventIQ-AI/BERT-Spam-Job-Posting-Detection-Model"
tokenizer = BertTokenizerFast.from_pretrained(model_name)
model = BertForSequenceClassification.from_pretrained(model_name)
model.eval()
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model.to(device)
def predict_with_bert(text):
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=128)
device = next(model.parameters()).device # Get model device (cpu or cuda)
inputs = {k: v.to(device) for k, v in inputs.items()}
with torch.no_grad():
logits = model(**inputs).logits
predicted_class_id = logits.argmax().item()
return "Fake Job" if predicted_class_id == 1 else "Real Job"
# Example
print(predict_with_bert("Hiring remote data entry clerk for a large online project. Apply now."))
print(predict_with_bert("Looking for a Software Engineer with 5+ years of experience in Python."))
.
โโโ model/ # Quantized model files
โโโ tokenizer_config/ # Tokenizer and vocab files
โโโ model.safensors/ # Fine-tuned model in safetensors format
โโโ README.md # Model card
Contributions, issues, and feature requests are welcome! Feel free to open a pull request or raise an issue.