Job Description Skill Classifier [JobSelect v0.10.5 & JobAnalyze 6k v1.0] (Multi-Label)
This project builds a lightweight text classification pipeline that predicts multiple technical skills from a job posting. Given a job description (optionally augmented with role and job type), the model outputs a ranked list of likely skills.
Installation:
pip install jobselect
It uses:
- TF-IDF features over the combined text (job description + role + type)
- A PyTorch feed-forward neural network trained as a multi-label classifier
- Per-skill thresholding for evaluation and top-k ranked probabilities for inference
What it does
-
Data preparation (
model/prep/data_prep.py)- Reads cleaned job description data.
- Normalizes/repairs common skill typos (e.g.,
tesnorflow/pytorch→tensorflow/pytorch). - Builds a multi-hot target vector of skills.
- Fits a TF-IDF vectorizer (with n-grams) and splits into train/test.
- Saves:
model/prep/prepared_data.npz(TF-IDF arrays + labels + indexes)model/prep/vectorizer.pkl(fitted TF-IDF vectorizer)model/prep/label_vocab.json(skill label vocabulary)
-
Model training (
model/model.py)- Loads prepared TF-IDF arrays.
- Defines a simple MLP:
- Linear → ReLU → Dropout → Linear (one logit per skill)
- Trains with
BCEWithLogitsLoss(multi-label setting). - Saves:
model_out/skill_classifier.pt(model weights)model_out/training_history.json(train/test loss curves)
-
Evaluation (
model/eval.py)- Loads the trained model.
- Applies a fixed sigmoid + threshold (0.5) to obtain binary skill predictions.
- Reports:
- Per-skill precision/recall/F1
- Micro-F1 and Macro-F1
- Compares against a simple baseline (frequency-driven / always-predict-most-frequent labels).
-
Prediction / Inference (
model/pred.py)- Loads the TF-IDF vectorizer and trained model.
- Creates TF-IDF features for the input text.
- Outputs the top-k skills by probability.
Use cases
- Resume/job-post matching (first-pass filtering of relevant skills)
- Job taxonomy building (discover recurring skills from postings)
- Recruiting analytics (aggregate predicted skill demand by seniority/role/type)
- Prototyping multi-label NLP classifiers (TF-IDF + MLP baseline)
Project structure
.
├─ data/
│ ├─ raw/
│ │ └─ Job_descriptions.csv # Raw input dataset
│ ├─ sample_data/
│ │ └─ test.txt # Example JD, Role and Type for testing
│ └─ clean/
│ ├─ cleaned_job_descriptions.csv # Cleaned master CSV
│ ├─ cleaned_job_descriptions_internships.csv
│ ├─ cleaned_job_descriptions_junior.csv
│ └─ cleaned_job_descriptions_senior.csv
│
├─ model/
│ ├─ prep/
│ │ ├─ data_prep.py # TF-IDF + multi-hot label creation + train/test split
│ │ ├─ sym_map.py # Synonym/phrase normalization map used during prep
│ │ ├─ vectorizer.pkl # Saved TF-IDF vectorizer (generated by data_prep)
│ │ ├─ prepared_data.npz # Saved arrays (generated by data_prep)
│ │ └─ label_vocab.json # Skill label vocabulary (generated by data_prep)
│ │
│ ├─ model.py # PyTorch multi-label classifier training
│ ├─ eval.py # Thresholded evaluation + F1 metrics + baseline comparison
│ └─ pred.py # Predict top-k skills for new text
│
├─ model_out/
│ ├─ skill_classifier.pt # Trained model weights (generated by model.py)
│ └─ training_history.json # Training loss history (generated by model.py)
│
├─ cli/
│ └─ jobselect.py # Rich terminal CLI for interactive prediction (uses model.pred.predict)
│
├─ test/
│ └─ test_model.py # Pytest checks expected artifacts exist in model_out/ and model/prep/
│
├─ notebooks/
│ ├─ 01_EDA.ipynb # Exploratory Data Analysis
│ └─ 02_Data_Engineering.ipynb # Data engineering / cleaning notes
│
├─ pipeline.py # Executes notebooks + training/eval steps in order
├─ pyproject.toml # Installs as a cli tool
├─ requirements.txt
└─ README.md
Requirements
See requirements.txt for the exact dependencies.
Getting started
1) Clone and Install dependencies
git clone https://github.com/Ak47xdd/Job-Description-Analysis.git
pip install -r requirements.txt
2) Run data preparation (optional)
This builds the TF-IDF features and label vocabulary from the cleaned CSV.
python model/prep/data_prep.py
Expected outputs:
model/prep/prepared_data.npzmodel/prep/vectorizer.pklmodel/prep/label_vocab.json
3) Train the model (optional)
python model/model.py
Expected outputs:
model_out/skill_classifier.ptmodel_out/training_history.json
4) Evaluate performance (optional)
python model/eval.py
Outputs include:
- Per-skill metrics (precision/recall/F1)
- Micro-F1 and Macro-F1
- Baseline comparison
5) Predict skills for a new job description
Option A: Use Python function
from model.pred import predict
data/sample_data/test.txt contains an example job description inside. You can also call the predict(job_desc, role=..., job_type=..., top_k=...) function from Python.
Option B: Use the interactive CLI
python cli/jobselect.py
or
pip install jobselect
jobselect
The CLI prompts for job description, role, and job type, then prints the top skills with probabilities.
How predictions work
- Text is concatenated as:
"{job_desc} {role} {job_type}" - TF-IDF transforms text into a fixed-size vector
- The network outputs one logit per skill
- Sigmoid converts logits → probabilities
- Skills are ranked by probability and the top-k are returned
Important implementation notes
- Multi-label learning: Each skill is treated independently (binary relevance via sigmoid +
BCEWithLogitsLoss). - Evaluation threshold:
model/eval.pyuses a fixed threshold of 0.5. For production use, you may want per-label thresholds tuned on a validation set. - Dataset size: The included notebooks and evaluation code suggest the dataset may be small; results can be limited by label frequency and data coverage.
New features / capabilities
- Rich terminal CLI (
cli/jobauto.py) usingrich+pyfigletfor interactive top-skill display. - Synonym/phrase normalization hook (
model/prep/sym_map.py) applied during data preparation. - Pipeline runner (
pipeline.py) to execute notebooks and training steps in sequence.
Customization ideas
- Improve text cleaning and skill normalization in
data_prep.py - Tune TF-IDF parameters (
max_features,ngram_range,min_df) - Replace the simple MLP with a stronger baseline (e.g., logistic regression on TF-IDF)
- Calibrate thresholds per label using validation data
- Add a CLI or web service endpoint for prediction
References / Inspiration
This repository follows a common pattern for multi-label NLP baselines: TF-IDF features + a simple neural network + sigmoid-based multi-label outputs.
Metadata
Release files for JobSelect 0.10.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jobselect-0.10.8.tar.gz | 90.3 kB | Without provenance | Details for jobselect-0.10.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jobselect-0.10.8-py3-none-any.whl | Python 3 | none | any | Details for jobselect-0.10.8-py3-none-any.whl |
Total release size: 182.8 kB
Release files / jobselect-0.10.8.tar.gz
| Download URL | jobselect-0.10.8.tar.gz |
|---|---|
| Size | 90.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b51088bb46b26237517b8cdfac2bd3304da40057d4b90d07b851d9cf86df5b0e
|
|
BLAKE2b-256 checksum How to use checksums |
30f7fea9eb667c1e45ab9b5d809a783c4702a2a7aab6064e1821c220ccd050d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / jobselect-0.10.8-py3-none-any.whl
| Download URL | jobselect-0.10.8-py3-none-any.whl |
|---|---|
| Size | 92.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f466fd88132f11e76d69a04eb3f2ce63232c39e7c686633d3499406052f4be8
|
|
BLAKE2b-256 checksum How to use checksums |
3c3bfdd576a79cb48967392a20d91357d22429fc7d8ef388a6f91eef01fc3ff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for JobSelect 0.10.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.