Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  SmartHire AI โ€” Community Edition

An explainable, local-first Applicant Tracking System for resume screening, skill-gap analysis, ATS scoring, and candidate ranking.

Python Streamlit scikit-learn MIT License Status

Overview โ€ข Features โ€ข Architecture โ€ข Installation โ€ข Usage โ€ข Responsible Use


๐Ÿ“Š Overview

SmartHire AI is an open-source Applicant Tracking System prototype that helps recruiters and hiring teams perform faster and more consistent first-pass resume screening.

The platform combines classical machine learning, natural-language processing, explainable ATS scoring, skill extraction, and interactive analytics inside a polished Streamlit dashboard.

It is intentionally designed to be:

  • Local-first โ€” runs on a laptop without paid APIs
  • CPU-friendly โ€” built using TF-IDF, cosine similarity, and LinearSVC
  • Explainable โ€” shows why a candidate received a particular score
  • Recruiter-friendly โ€” provides ranked results, skill gaps, recommendations, and CSV export
  • Portfolio-ready โ€” demonstrates a complete end-to-end machine-learning workflow

One-line pitch: Turn manual resume screening into an efficient, repeatable, and explainable recruitment workflow.

Built For

  • Recruiters and hiring teams
  • HR analysts
  • Talent-acquisition teams
  • Students demonstrating applied NLP and machine-learning skills
  • Developers building lightweight ATS prototypes

Current Demo Scale

Metric Current Demo Value
Resume records 2,484
Resume categories 24
Job-source records 1,637,940
Category-classifier accuracy 71.03%

Values depend on the locally available datasets and may change when different files are loaded.


โœจ Core Features

๐ŸŽฏ Explainable Resume Screening

  • Rank multiple resumes against a selected job description
  • Calculate an overall ATS score for every candidate
  • Display similarity, skill-match, and role-match components
  • Generate an explanation describing why each candidate received their score
  • Categorize results using recruiter-friendly recommendations

๐Ÿงฉ Skill Intelligence

  • Extract skills from resumes and job descriptions
  • Identify matched and missing skills
  • Calculate skill-match percentages
  • Classify skill-gap severity
  • Display required skills clearly for recruiter review

๐Ÿค– Machine-Learning Classification

  • Predict resume categories using TF-IDF + LinearSVC
  • Train the classifier from categorized resume data
  • Display model accuracy inside the dashboard
  • Support classification across 24 resume categories

๐Ÿ“‹ Bulk Candidate Ranking

  • Use built-in resume datasets
  • Upload custom resume CSV files
  • Filter candidates by category
  • Select how many top candidates to display
  • Export ranked candidate results as CSV

๐Ÿ” Single Resume Analyzer

  • Upload one TXT or CSV resume
  • Compare it directly against a job description
  • View ATS score, similarity, skill match, predicted category, and recommendation
  • Review matched and missing skills instantly

๐Ÿ“ˆ Interactive Analytics

  • Resume-category distribution chart
  • Dataset metrics and model-performance overview
  • Resume keyword WordCloud
  • ATS-score comparison chart
  • Skill-gap severity visualization
  • Interactive Plotly exploration

๐Ÿ›ก๏ธ Defensive Data Handling

  • Multi-encoding CSV support
  • Graceful handling of missing datasets
  • Automatic text-column detection
  • Friendly Streamlit warnings instead of application crashes
  • Local export storage under outputs/

๐Ÿ—๏ธ Project Architecture

SmartHire AI follows a modular machine-learning architecture that separates data ingestion, text processing, skill intelligence, scoring, classification, visualization, and export operations.

End-to-End Processing Workflow

Resume Dataset / Uploaded Resume
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              Data Ingestion                 โ”‚
โ”‚                                             โ”‚
โ”‚  โ€ข Load default resume datasets             โ”‚
โ”‚  โ€ข Upload custom CSV resume files           โ”‚
โ”‚  โ€ข Load stored or custom job descriptions   โ”‚
โ”‚  โ€ข Handle UTF-8, Latin-1, ISO-8859-1, CP1252โ”‚
โ”‚  โ€ข Automatically detect text columns        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚            Text Preprocessing               โ”‚
โ”‚                                             โ”‚
โ”‚  โ€ข Convert input into normalized text       โ”‚
โ”‚  โ€ข Remove unnecessary symbols and noise     โ”‚
โ”‚  โ€ข Standardize resume and job-description   โ”‚
โ”‚    content                                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚             Skill Intelligence              โ”‚
โ”‚                                             โ”‚
โ”‚  โ€ข Extract skills from the job description  โ”‚
โ”‚  โ€ข Extract skills from each resume          โ”‚
โ”‚  โ€ข Identify matched skills                  โ”‚
โ”‚  โ€ข Identify missing skills                  โ”‚
โ”‚  โ€ข Calculate skill-gap severity             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚          Machine-Learning Analysis          โ”‚
โ”‚                                             โ”‚
โ”‚  โ€ข TF-IDF text vectorization                โ”‚
โ”‚  โ€ข Resume-to-job cosine similarity          โ”‚
โ”‚  โ€ข LinearSVC resume-category prediction     โ”‚
โ”‚  โ€ข Role relevance calculation               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              ATS Scoring Engine             โ”‚
โ”‚                                             โ”‚
โ”‚  โ€ข 50% Resume-to-job similarity             โ”‚
โ”‚  โ€ข 30% Required skill match                 โ”‚
โ”‚  โ€ข 20% Role relevance                       โ”‚
โ”‚  โ€ข Final weighted ATS score                 โ”‚
โ”‚  โ€ข Candidate recommendation generation      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚          Ranking and Explainability         โ”‚
โ”‚                                             โ”‚
โ”‚  โ€ข Sort candidates by ATS score             โ”‚
โ”‚  โ€ข Generate ranking explanations            โ”‚
โ”‚  โ€ข Display matched and missing skills       โ”‚
โ”‚  โ€ข Show predicted resume category           โ”‚
โ”‚  โ€ข Assign recruiter-friendly recommendation โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚         Streamlit Dashboard and Export      โ”‚
โ”‚                                             โ”‚
โ”‚  โ€ข Dashboard metrics                        โ”‚
โ”‚  โ€ข Candidate ranking table                  โ”‚
โ”‚  โ€ข Score comparison charts                  โ”‚
โ”‚  โ€ข Skill-gap analysis                       โ”‚
โ”‚  โ€ข Single-resume analyzer                   โ”‚
โ”‚  โ€ข Ranked-results CSV export                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

ATS Scoring Architecture

                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚      Resume Text         โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
                                 โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚    Job Description       โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ”‚                  โ”‚                  โ”‚
              โ–ผ                  โ–ผ                  โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ TF-IDF Similarity   โ”‚ โ”‚ Skill Matching   โ”‚ โ”‚ Role Relevance   โ”‚
โ”‚                     โ”‚ โ”‚                  โ”‚ โ”‚                  โ”‚
โ”‚ Weight: 50%         โ”‚ โ”‚ Weight: 30%      โ”‚ โ”‚ Weight: 20%      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
           โ”‚                     โ”‚                    โ”‚
           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
                                 โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚     Final ATS Score      โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
                                 โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚ Candidate Recommendation โ”‚
                    โ”‚ and Ranking Explanation  โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Core Module Responsibilities

Module Responsibility
app/app.py Streamlit interface, navigation, analysis workflow, charts, and exports
src/data_loader.py Safe dataset loading, encoding fallback, and validation
src/preprocessing.py Resume and job-description text cleaning
src/skill_extractor.py Skill extraction, matching, and gap analysis
src/scoring.py Similarity, skill-match, role-match, and ATS score calculation
src/category_model.py LinearSVC resume-category classifier training and prediction
scripts/ Supporting utility and training scripts
outputs/ Generated ranked-candidate CSV exports
tests/ Automated tests for core project functionality

Design Principles

  • Modular: Processing, scoring, classification, and UI logic are separated.
  • Explainable: Every ranking includes visible scoring components and skill gaps.
  • Local-first: The application works without paid external APIs.
  • CPU-friendly: Classical machine-learning models keep execution lightweight.
  • Defensive: Missing files and invalid datasets produce clear warnings instead of crashes.
  • Configurable: ATS scoring weights can be adjusted inside src/scoring.py.

๐Ÿงฎ ATS Scoring Model

SmartHire AI uses a configurable weighted scoring model:

ATS Score = 50% ร— Similarity Score
          + 30% ร— Skill Match Score
          + 20% ร— Role Match Score
Score Component Description Range
Similarity Score TF-IDF cosine similarity between resume and job description 0โ€“100
Skill Match Score Percentage of required skills identified in the resume 0โ€“100
Role Match Score Category relevance heuristic based on the target job 0โ€“100

The weights are normalized automatically and can be modified in:

src/scoring.py

Candidate Recommendations

The final ATS score is converted into a recruiter-friendly recommendation such as:

  • Strong Hire
  • Good Match
  • Moderate Match
  • Weak Match
  • Not Recommended

These labels are intended to support human review, not replace it.


๐Ÿ—๏ธ Architecture

End-to-End Workflow

Resume CSV / Uploaded Resume
            โ†“
      Safe Data Loading
      โ”œโ”€ Encoding fallback
      โ”œโ”€ Missing-file handling
      โ””โ”€ Automatic text-column detection
            โ†“
      Text Preprocessing
      โ”œโ”€ Clean and normalize text
      โ”œโ”€ Remove noisy characters
      โ””โ”€ Prepare text for analysis
            โ†“
      Skill Intelligence
      โ”œโ”€ Extract resume skills
      โ”œโ”€ Extract required job skills
      โ”œโ”€ Identify matched skills
      โ””โ”€ Identify missing skills
            โ†“
      Machine-Learning Analysis
      โ”œโ”€ TF-IDF vectorization
      โ”œโ”€ Cosine similarity
      โ”œโ”€ LinearSVC category prediction
      โ””โ”€ Role relevance calculation
            โ†“
      ATS Scoring Engine
      โ”œโ”€ Similarity score
      โ”œโ”€ Skill-match score
      โ”œโ”€ Role-match score
      โ””โ”€ Weighted final ATS score
            โ†“
      Recruiter Dashboard
      โ”œโ”€ Candidate ranking
      โ”œโ”€ Explainable recommendations
      โ”œโ”€ Interactive visualizations
      โ””โ”€ CSV export

Module Responsibilities

Module Purpose
app/app.py Streamlit UI, navigation, analysis workflow, charts, and exports
src/data_loader.py Safe CSV loading and dataset validation
src/preprocessing.py Resume and job-description text cleaning
src/skill_extractor.py Skill extraction and skill-gap analysis
src/scoring.py Similarity, role relevance, ATS scoring, and recommendations
src/category_model.py Resume-category classifier training and prediction
scripts/ Utility and model-training scripts
tests/ Automated project tests
outputs/ Generated ranking exports

๐Ÿ› ๏ธ Technology Stack

Layer Technology Purpose
Frontend Streamlit Interactive recruitment dashboard
Data processing Pandas, NumPy Data loading, cleaning, and manipulation
Machine learning scikit-learn TF-IDF, cosine similarity, and LinearSVC
NLP TF-IDF and regex-based extraction Resume matching and skill intelligence
Visualization Plotly Interactive charts and analytics
Keyword analysis WordCloud, Matplotlib Resume keyword visualization
Testing pytest Automated validation
Runtime Python 3.8+ Core application environment

๐Ÿ’ผ Business Value

Faster First-Pass Screening

  • Reduce repetitive manual resume review
  • Rank large candidate pools consistently
  • Focus recruiter attention on the most relevant profiles

Explainable Candidate Evaluation

  • Show why a candidate ranked highly or poorly
  • Separate similarity, skill match, and role relevance
  • Make screening results easier to review and discuss

Skill-Gap Visibility

  • Identify required skills missing from candidate resumes
  • Compare candidates against the same job requirements
  • Support more structured interview preparation

Flexible Recruitment Workflow

  • Use default datasets for demonstrations
  • Upload custom resume datasets
  • Enter manual job descriptions or select stored descriptions
  • Export ranked candidate lists for further review

๐Ÿ“ Project Structure

FUTURE_ML_03/
โ”œโ”€โ”€ .github/                              # GitHub configuration and workflows
โ”œโ”€โ”€ .venv/                                # Local virtual environment; ignored by Git
โ”‚
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ __pycache__/                      # Generated Python cache; ignored by Git
โ”‚   โ””โ”€โ”€ app.py                            # Main Streamlit application
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ categorized_resumes/              # Categorized resume dataset
โ”‚   โ”œโ”€โ”€ Resume/
โ”‚   โ”‚   โ””โ”€โ”€ Resume.csv                    # Default resume dataset
โ”‚   โ”œโ”€โ”€ job_descriptions.csv              # Internal job-description dataset
โ”‚   โ””โ”€โ”€ monster_com-job_sample.csv        # External job-description sample
โ”‚
โ”œโ”€โ”€ notebooks/                            # Optional experiments and analysis
โ”œโ”€โ”€ outputs/                              # Generated candidate rankings and exports
โ”œโ”€โ”€ scripts/                              # Utility and training scripts
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ category_model.py                 # Resume category classifier
โ”‚   โ”œโ”€โ”€ data_loader.py                    # Dataset loading utilities
โ”‚   โ”œโ”€โ”€ preprocessing.py                  # Text cleaning and normalization
โ”‚   โ”œโ”€โ”€ scoring.py                        # ATS scoring logic
โ”‚   โ””โ”€โ”€ skill_extractor.py                # Skill extraction and gap analysis
โ”‚
โ”œโ”€โ”€ tests/                                # Automated tests
โ”œโ”€โ”€ visuals/                              # README screenshots and visual assets
โ”œโ”€โ”€ .gitignore                            # Repository ignore rules
โ”œโ”€โ”€ LICENSE                               # MIT License
โ”œโ”€โ”€ main.py                               # Application launcher
โ”œโ”€โ”€ README.md                             # Project documentation
โ””โ”€โ”€ requirements.txt                      # Python dependencies

The structure above preserves the current project architecture. Local virtual environments, caches, generated outputs, large datasets, and private applicant records should not be committed to GitHub.


โš™๏ธ Installation

Prerequisites

  • Python 3.8 or later
  • Git
  • Windows, macOS, or Linux
  • Approximately 1 GB of free space, depending on local datasets

Quick Start

1. Clone the repository

git clone https://github.com/itzPardhiv/FUTURE_ML_03.git
cd FUTURE_ML_03

2. Create a virtual environment

Windows PowerShell

py -m venv .venv
.\.venv\Scripts\Activate.ps1

Linux or macOS

python3 -m venv .venv
source .venv/bin/activate

3. Install dependencies

python -m pip install --upgrade pip
pip install -r requirements.txt

4. Run the application

streamlit run app/app.py

Alternatively:

python main.py

5. Open the application

http://localhost:8501

๐Ÿ“Š Usage Guide

Dashboard

Use the Dashboard to review:

  • total resume count;
  • number of resume categories;
  • available job-source records;
  • category-classifier accuracy;
  • resume-category distribution;
  • common resume keywords.

Resume Screening

  1. Select Use Default Datasets or Upload Custom Datasets.
  2. Enter, upload, or select a job description.
  3. Optionally filter resumes by category.
  4. Select the number of top candidates to display.
  5. Click Analyze Resumes.
  6. Review the candidate ranking, score breakdown, skill gaps, and recommendations.
  7. Export the ranked candidates as CSV.

Single Resume Analyzer

  1. Upload a TXT or CSV resume.
  2. Paste a target job description.
  3. Click Analyze.
  4. Review the ATS score, similarity, skill match, category, recommendation, and missing skills.

Data Preview

Use the Data Preview page to inspect the currently loaded:

  • resume dataset;
  • internal job-description dataset;
  • Monster job-description dataset.

๐Ÿ“„ Expected Dataset Format

SmartHire AI automatically searches for likely text columns such as:

Resume_str
Resume
resume
text
Description
Job Description
job_description
Responsibilities
Content
Summary
Body

Example Resume CSV

Name,Category,Resume_str
Candidate A,INFORMATION-TECHNOLOGY,"Python developer with SQL and machine-learning experience"
Candidate B,SALES,"Sales professional with lead-generation and customer-service experience"

Example Job-Description CSV

Role,job_description
AI/ML Intern,"Python, machine learning, SQL, Streamlit, Git, and data visualization required"

๐Ÿงช Testing

Run the test suite:

pytest -q

Compile the project to catch syntax issues:

python -m compileall app src main.py

โšก Performance Notes

Performance depends heavily on dataset size and local hardware.

For responsive development and demonstrations:

  • avoid loading unnecessary multi-million-row datasets;
  • cache dataset-loading functions;
  • generate WordClouds only when requested;
  • train the classifier only when required;
  • test custom uploads with smaller sample files first.

๐Ÿ› Troubleshooting

Blank Streamlit Page

Stop the server and restart it:

Ctrl + C
streamlit run app/app.py

A blank page may occur when a large dataset, classifier-training process, or WordCloud generation blocks the initial render.

PowerShell Blocks Environment Activation

Set-ExecutionPolicy -Scope Process Bypass
.\.venv\Scripts\Activate.ps1

Missing Dataset Warning

Confirm the required files exist under:

data/Resume/Resume.csv
data/job_descriptions.csv
data/monster_com-job_sample.csv

The application can also fall back to sample datasets when configured.

CSV Encoding Error

SmartHire AI attempts multiple encodings, including:

UTF-8
Latin-1
ISO-8859-1
CP1252

Port Already in Use

streamlit run app/app.py --server.port 8502

๐Ÿ›ก๏ธ Responsible Use

SmartHire AI is a decision-support prototype. It must not be used as the sole system for accepting or rejecting candidates.

Resume data may contain personal and sensitive information. Users should:

  • obtain permission before processing applicant data;
  • avoid committing real resumes to public repositories;
  • remove unnecessary personally identifiable information;
  • review model outputs for errors and bias;
  • keep a qualified human reviewer involved in every hiring decision;
  • comply with applicable recruitment, privacy, and employment laws.

โš ๏ธ Current Limitations

  • Regex-based skill extraction may miss synonyms and contextual meaning.
  • TF-IDF similarity does not fully understand deep semantic relationships.
  • Category predictions depend on the quality and balance of training data.
  • Role-match scoring is heuristic.
  • PDF and DOCX resume parsing are not currently included.
  • ATS scores should not be interpreted as objective hiring decisions.

๐Ÿ”ฎ Future Roadmap

Phase 2 โ€” Enhanced Resume Intelligence

  • PDF and DOCX resume parsing
  • Expanded and configurable skill taxonomy
  • Transformer-based semantic similarity
  • Improved role-match scoring
  • Candidate comparison dashboard

Phase 3 โ€” Platform and API

  • REST API using FastAPI
  • SQLite or PostgreSQL persistence
  • Recruiter authentication
  • Saved jobs and candidate pipelines
  • Cloud deployment

Phase 4 โ€” Responsible AI and Evaluation

  • Bias and fairness evaluation
  • Model-performance dashboard
  • Configurable recruiter scorecards
  • Audit logs and decision explanations
  • Human-feedback collection

Phase 5 โ€” Enterprise Features

  • Multi-user collaboration
  • Role-based access control
  • Integration with recruitment platforms
  • Automated reports
  • Multi-language resume support

๐Ÿค Contributing

Contributions are welcome.

git checkout -b feature/your-feature
git add .
git commit -m "Add your feature"
git push origin feature/your-feature

Then open a pull request describing:

  • the problem being solved;
  • the proposed implementation;
  • testing performed;
  • screenshots for UI changes.

Do not include private applicant data, secrets, virtual environments, generated files, or large datasets in pull requests.


๐Ÿ‘จโ€๐Ÿ’ป Author

A. J. Pardhiv

Artificial Intelligence and Data Science student focused on machine learning, NLP, data analytics, and practical AI applications.


๐Ÿ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • Streamlit โ€” interactive data-application framework
  • scikit-learn โ€” machine-learning algorithms and utilities
  • Plotly โ€” interactive visualization engine
  • Pandas โ€” data-processing framework
  • WordCloud โ€” resume keyword visualization
  • Open-source resume and job-description datasets used for development and demonstration

โญ Show Your Support

If SmartHire AI is useful to you:

  • โญ Star the repository
  • ๐Ÿ”— Share it with other developers
  • ๐Ÿ“ Submit improvements
  • ๐Ÿ’ฌ Open issues with feedback

Built as an explainable, practical, and recruiter-friendly machine-learning portfolio project.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages