--- language: en license: apache-2.0 library_name: transformers pipeline_tag: text-classification base_model: bert-base-uncased datasets: - lang-uk/recruitment-dataset-candidate-profiles-english tags: - resume - cv - job-category - bert metrics: - f1 - accuracy model-index: - name: resume_classifier results: - task: type: text-classification name: Resume category classification (12 classes) dataset: name: IT resumes (Djinni + PostJobFree), 10% stratified validation split type: custom split: validation metrics: - type: f1 value: 0.9089 name: Macro F1 - type: accuracy value: 0.9141 name: Accuracy --- # Resume Classifier A fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) that classifies IT-sector resumes into one of 12 job categories from the resume text alone. On the validation set it reaches **0.9089 macro F1** and **0.9141 accuracy**. - **Developed by:** Kyryl Sidak - **Model type:** BERT with a sequence classification head - **Language:** English - **License:** Apache-2.0 - **Fine-tuned from:** `bert-base-uncased` ## Labels | ID | Label | Includes | |---:|---|---| | 0 | business analyst | | | 1 | customer support | | | 2 | data | data analyst, data engineer, data scientist | | 3 | devops/cloud | DevOps, cloud engineer | | 4 | hr | HR, recruiter | | 5 | marketing | marketing, SEO | | 6 | mobile | Android, iOS, Flutter | | 7 | product/project manager | | | 8 | qa engineer | | | 9 | sales manager | | | 10 | ux | UI/UX designer | | 11 | web | backend, frontend, full stack | ## Intended uses and limitations The model was built to route resumes in a job-matching app: each resume gets a category, and only vacancies in that category are searched. Out of scope: - **Resumes outside the 12 categories.** The model has no "other" class, so it always returns one of the 12 labels. - **Hiring decisions.** Do not use it to screen, rank or score candidates. It predicts a job area, not suitability. ## How to use ```python from transformers import pipeline classifier = pipeline("text-classification", model="Kipish/resume_classifier") text = "Senior Python developer with 5 years of experience building REST APIs with Django and FastAPI..." print(classifier(text, truncation=True, max_length=512)) # [{'label': 'web', 'score': 0.99}] ``` The model was trained on cleaned English text. For best results, translate the resume to English and remove URLs, emails, phone numbers and HTML before classifying. ## Training data 191,202 unique English resumes from three sources: - **[Djinni Recruitment Dataset](https://huggingface.co/datasets/lang-uk/recruitment-dataset-candidate-profiles-english).** Labels were derived from the position title and primary keyword. - **Candidate profiles scraped from djinni.co.** Labelled by category search query. - **Resumes scraped from postjobfree.com.** Labelled by category search query. Preprocessing: - Only English resumes were kept. - URLs, emails, phone numbers, HTML and special characters were removed. - Resumes shorter than 300 characters were dropped, along with duplicates. The data was split 90/10 into training and validation sets, stratified by class. The classes are imbalanced: | Label | Resumes | Share | |---|---:|---:| | product/project manager | 36,310 | 19.0% | | qa engineer | 26,849 | 14.0% | | marketing | 22,763 | 11.9% | | sales manager | 17,977 | 9.4% | | hr | 16,150 | 8.4% | | data | 15,273 | 8.0% | | web | 14,284 | 7.5% | | ux | 10,622 | 5.6% | | business analyst | 10,003 | 5.2% | | mobile | 9,513 | 5.0% | | devops/cloud | 6,116 | 3.2% | | customer support | 5,342 | 2.8% | The training data is not publicly released. ## Training procedure ### Training hyperparameters - epochs: 2 - train_batch_size: 16 - optimizer: AdamW, learning rate 2e-5 - lr_scheduler: linear, no warmup - max_grad_norm: 1.0 - max_seq_length: 512 - loss: cross-entropy Trained on a single NVIDIA A100 (Google Colab). ### Training results | Epoch | Training loss | Validation loss | Validation macro F1 | |---:|---:|---:|---:| | 1 | 0.3973 | 0.3223 | 0.9028 | | 2 | 0.2691 | 0.3012 | 0.9089 | ### Framework versions - Transformers 4.51.3 - PyTorch 2.6.0+cu124 ## Evaluation The scores below are on the validation split (19,121 resumes). Macro F1 is the main metric because it weights each class equally, whatever its size. | Label | Precision | Recall | F1 | Support | |---|---:|---:|---:|---:| | business analyst | 0.8173 | 0.7920 | 0.8045 | 1,000 | | customer support | 0.8050 | 0.7809 | 0.7928 | 534 | | data | 0.9258 | 0.9149 | 0.9203 | 1,527 | | devops/cloud | 0.9589 | 0.9542 | 0.9566 | 612 | | hr | 0.9310 | 0.9195 | 0.9252 | 1,615 | | marketing | 0.8853 | 0.8849 | 0.8851 | 2,277 | | mobile | 0.9685 | 0.9685 | 0.9685 | 951 | | product/project manager | 0.8933 | 0.9110 | 0.9021 | 3,631 | | qa engineer | 0.9654 | 0.9758 | 0.9706 | 2,685 | | sales manager | 0.8866 | 0.8699 | 0.8782 | 1,798 | | ux | 0.9644 | 0.9699 | 0.9671 | 1,062 | | web | 0.9308 | 0.9412 | 0.9360 | 1,429 | | **macro avg** | **0.9110** | **0.9069** | **0.9089** | 19,121 | Most errors occur between roles that overlap: business analyst and product/project manager, marketing and sales manager, and business analyst and data. ## Bias, risks and limitations - **512-token limit.** Text beyond the first 512 tokens is ignored. - **Skewed toward Ukrainian candidates.** Most resumes come from Djinni, a Ukrainian job platform, so resumes from other job markets may score lower. - **Noisy labels.** Labels come from title keywords and search queries, not manual annotation, so some are wrong. This hurts most in overlapping categories. - **One label per resume.** Hybrid roles still get a single category. - **No separate test set.** Results are reported on the validation split only. - **Personal data.** Resumes contain personal data. Names and other identifying details can remain after cleaning. ## License The model weights are released under Apache-2.0. The licence does not cover the training data. Part of that data was scraped from djinni.co and postjobfree.com and remains subject to those sites' terms.