Jobicy Job Category Classifier v0.2.0
Classify an English job title and/or description into 27 broad occupation categories. This release trains a logistic regression classification head on real vacancies from jobicy/remote-jobs, using the existing frozen MiniLM ONNX encoder. It runs offline on CPU after package installation. The encoder itself has not been fine-tuned.
Coverage is mixed: 18 categories have real training examples, including 2 categories trained only from explicit title rules. The other 9 categories retain the semantic fallback. All 27 categories are kept; the output marks training support and always requests review for untrained or weak-only categories.
Quick start
Requires Python 3.12-3.14, 64-bit, and a supported CPU/OS for ONNX Runtime. Tested on Windows x64, Python 3.14.10. GPU and PyTorch are not required. Model files are included.
Windows: extract the complete bundle and double-click start.cmd. Enter an English title and optional description. See QUICKSTART.md.
For an isolated environment in PowerShell:
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe classify.py --title "Senior React Developer" --description "Build frontend applications with React and TypeScript."
.\.venv\Scripts\python.exe classify.py --csv examples/evaluation.csv --output predictions.csv
Linux/macOS: use .venv/bin/python instead of .venv/Scripts/python.exe.
Python integration (initialize once, reuse for many jobs):
from classifier import JobCategoryClassifier
model = JobCategoryClassifier()
result = model.predict("Senior React Developer", "Build web applications with React.")
print(result["category"])
print(result["needs_review"])
print(result["candidates"])
Training data and mapping
- Dataset:
jobicy/remote-jobs, commit23569c493f14446874d9a49bef83bec036a7c1c1. - Input: 14,265 daily-file rows, representing 10,146 unique Jobicy IDs.
- After explicit mapping, English filtering, text checks and content deduplication: 9,349 vacancies.
- Labels: 8,353 direct source mappings and 996 weak title-rule mappings.
- Split: 5,609 train / 1,870 validation / 1,870 test. Repeated-role and exact-description groups do not cross splits.
category_mapping.json is the executable mapping. CATEGORY_MAPPING.md explains every source-to-target mapping. Broad Product & Operations and Marketing & Sales labels are split only when one conservative job-title rule matches. Ambiguous, conflicting, unknown and insufficient records are excluded. No model predictions are used to create training labels.
Existing Jobicy labels may contain errors. Title-rule labels are weak supervision, not independently verified ground truth.
Held-out evaluation
Results below concern 1,667 held-out records with directly mapped source labels. They measure top-ranked-category agreement with those source labels, before review and abstention; they do not establish human-audited occupational accuracy.
| Metric | Semantic baseline | Trained hybrid |
|---|---|---|
| Top-1 agreement | 59.81% | 79.00% |
| Macro F1 on present reference classes | 0.5637 | 0.7575 |
| Top-3 agreement | 76.96% | 92.44% |
Full class-level results, source counts, weak-label evaluation, validation trials, split counts and limitations are in training/training_report.json. Test data was not used to select model settings. The shipped head is fit on the training split only, without refitting on held-out data.
No test support exists for the untrained fallback categories. Small categories have limited test support. Existing source label errors and residual paraphrase/template similarity can affect these metrics. The bundled 54 synthetic examples remain functional checks, not the real-data evaluation.
Categories and actual support
Categories refer to the occupation, not the employer's industry. For example, a software engineer at a hospital belongs to Software Development.
| Category | ID | Real train examples | Training mode |
|---|---|---|---|
| Software Development | software-development |
938 | supervised |
| Data, Analytics & AI | data-analytics-ai |
335 | supervised |
| IT, Systems & Technical Support | it-systems-support |
414 | supervised |
| Cybersecurity | cybersecurity |
211 | supervised |
| Design & Creative | design-creative |
183 | supervised |
| Product Management | product-management |
206 | weakly_supervised |
| Project & Program Management | project-program-management |
168 | supervised |
| Marketing & Advertising | marketing-advertising |
309 | supervised |
| Sales & Business Development | sales-business-development |
1376 | supervised |
| Customer Support & Success | customer-support-success |
442 | supervised |
| Writing, Editing & Translation | writing-editing-translation |
70 | supervised |
| Human Resources & Recruiting | hr-recruiting |
156 | supervised |
| Finance & Accounting | finance-accounting |
253 | supervised |
| Legal & Compliance | legal-compliance |
190 | supervised |
| Administrative & Office Support | administrative-office |
26 | supervised |
| Operations & General Management | operations-management |
101 | weakly_supervised |
| Engineering & Architecture | engineering-architecture |
0 | zero_shot_fallback |
| Manufacturing & Production | manufacturing-production |
0 | zero_shot_fallback |
| Logistics & Supply Chain | logistics-supply-chain |
0 | zero_shot_fallback |
| Healthcare & Medical | healthcare-medical |
162 | supervised |
| Education & Training | education-training |
69 | supervised |
| Hospitality, Food & Tourism | hospitality-tourism |
0 | zero_shot_fallback |
| Retail & E-commerce | retail-ecommerce |
0 | zero_shot_fallback |
| Construction & Skilled Trades | construction-trades |
0 | zero_shot_fallback |
| Science & Research | science-research |
0 | zero_shot_fallback |
| Real Estate & Property | real-estate |
0 | zero_shot_fallback |
| Nonprofit & Social Services | nonprofit-social-services |
0 | zero_shot_fallback |
Output and review
category: selected category; null if the semantic evidence is below the minimum or the script is unsupported.suggested_category: nearest ranked category, even if rejected.candidates: ranked IDs, English names, semantic similarities, hybrid scores andtrained_on_real_jobsflags.needs_review,review_reasons: heuristic review indicators, including ambiguity, title/description disagreement, long descriptions, unsupported categories and weak-only training.score_type:hybrid_ranking_not_probabilityfor this release.
Candidates are sorted by score, not raw similarity. Neither score nor similarity is a calibrated probability. needs_review=false is not a guarantee of correctness. The margin threshold is selected on validation source labels; the semantic similarity and out-of-distribution rejection thresholds remain uncalibrated. Non-English Latin-script text is not reliably detected by the runtime; supply English input.
Model architecture
The pinned all-MiniLM-L6-v2 unsigned 8-bit ONNX encoder produces normalized 384-dimensional vectors with attention-mask mean pooling. A separate untruncated tokenizer partitions descriptions into 220-token chunks, sampling up to three evenly across long texts. Title and description semantic scores are combined with weights 0.6 and 0.4. Long descriptions and truncated coverage are flagged for review.
Five manually authored reference texts per category supply the semantic baseline. For each category, the baseline score is 0.75 * max_similarity + 0.25 * mean_of_top_two_similarities.
The learned head consumes 795 features: a title vector (384), a mean description vector (384), and 27 semantic scores. Logistic regression uses balanced class weights. Validation selected C=8.0 and fusion weight=0.8.
When the top semantic category is supported by the trained head, its supported-class ranking scores are semantic_score + fusion_weight * (head_softmax - 1 / trained_class_count). If the top semantic category is unsupported, the original semantic ranking is retained and review is required. This avoids treating a closed-set head as evidence against occupations it never saw. The head's softmax is an internal relative score, not a calibrated confidence estimate. Numeric weights are exported to NumPy, with pickle disabled; scikit-learn is required for training, not prediction.
Reproduce training
python -m pip install -r requirements-training.txt
python train.py --work-dir ../jobicy-training-cache --revision 23569c493f14446874d9a49bef83bec036a7c1c1
python -m unittest -v test_classifier test_training
python evaluate.py --output evaluation_report.json
The work folder stores the downloaded dataset and feature cache outside the model artifact. Reusing the same folder reuses its pinned snapshot; use a fresh folder to train on a different dataset revision. Training does not happen automatically when new daily files appear. No scheduled retraining or automatic publishing is configured.
The downloader stores dataset-file SHA-256 hashes. Category changes require rebuilding prototypes with python prepare_model.py and retraining the head. Changing feature settings also requires retraining; runtime checks reject a stale head.
Files
encoder/model.onnx,encoder/tokenizer.json: real pretrained encoder and tokenizer, with upstream model card and provenance.head.npz,head.json: trained numeric classification weights, class mapping, source revision and training settings.categories.json,category_mapping.json,CATEGORY_MAPPING.md: the 27-category taxonomy and explicit source mapping.prototypes.npy,prototypes.json: semantic fallback reference embeddings and mapping.classifier.py,classify.py: offline Python interface, interactive CLI and UTF-8 CSV batches.train.py,training_data.py,download_dataset.py: reproducible real-data training pipeline.training/training_report.json,training/coverage.json: measured results, per-class support and limitations.training/dataset_manifest.json,training/split_manifest.json: pinned provenance and split IDs/groups.training/excluded_records.json,training/test_predictions.json: review IDs/reasons and test predictions, without raw job descriptions.requirements.txt,requirements-training.txt,requirements-lock.txt: runtime, training and tested environment dependencies.test_classifier.py,test_training.py: actual inference, mapping, portable-weight and split-integrity tests.
Hugging Face hosting
This repository contains the full runnable model artifact. Uploading it does not start an API, a Space or Inference Provider support. It is a custom ONNX and Python classifier, not a transformers.pipeline("text-classification") checkpoint. Deploy a service separately if a website needs HTTP inference.
Attribution and license
Custom code and the base encoder use Apache License 2.0; see LICENSE and NOTICE. Remote job data is provided by Jobicy. Dataset terms are retained in training/DATASET_LICENSE.txt; they do not relicense employer-provided material. Raw vacancy descriptions are not redistributed in this artifact.
- Downloads last month
- 15
Model tree for jobicy/job-category-classifier
Base model
nreimers/MiniLM-L6-H384-uncased