CoolFace
Modelpublic

srivihari/resume-job-role-classifier

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes30downloads
Model Card

๐Ÿ” Resume Job Role Classifier

A fine-tuned `DistilBERT` model to classify job roles based on resume content. This model is trained to predict the most likely profession from the given resume text, supporting over 14 different job categories.


๐Ÿง  Model Details

  • โ€”Architecture: DistilBERT (base, uncased)
  • โ€”Task: Multi-class text classification
  • โ€”Input: Raw resume text (English)
  • โ€”Output: Predicted job category label and score

๐Ÿ“Š Labels Covered

This model supports classification into the following job categories:

  • โ€”Data Science
  • โ€”Java Developer
  • โ€”Web Designing
  • โ€”HR
  • โ€”Mechanical Engineer
  • โ€”Electrical Engineering
  • โ€”Civil Engineer
  • โ€”Arts
  • โ€”Advocate
  • โ€”Sales
  • โ€”Health and fitness
  • โ€”Business Analyst
  • โ€”SAP Developer
  • โ€”Automation Testing

๐Ÿ‹๏ธ Training

  • โ€”Dataset: Custom dataset containing labeled resumes
  • โ€”Split: 80% train / 20% test
  • โ€”Metrics:
  • โ€”Accuracy: 99โ€“100%
  • โ€”F1 Score: ~0.99โ€“1.00 (macro avg)
  • โ€”Epochs: 3
  • โ€”Batch size: 8
  • โ€”Optimizer: AdamW

๐Ÿ“ฅ How to Use

python
from transformers import pipeline

classifier = pipeline("text-classification", model="srivihari/resume-job-role-classifier")
result = classifier("Experienced data scientist with Python, machine learning, and statistics background.")

print(result)
# Example output:
# [{'label': 'Data Science', 'score': 0.97}]
#Note: If you face any issues like token_type_ids errors, make sure to adjust tokenizer config as below:
#from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline

#model = AutoModelForSequenceClassification.from_pretrained("srivihari/resume-job-role-classifier")
#tokenizer = AutoTokenizer.from_pretrained("srivihari/resume-job-role-classifier")
#tokenizer.model_input_names = ["input_ids", "attention_mask"]
#classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)