Skip to content

Bilal-73/Resume-Classification-and-Details-Extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Resume Classification & Details Extraction API

Python FastAPI GitHub Repo License


πŸ”Ή Project Overview

This project is an AI-powered Resume Classification and Details Extraction API.
It allows users to upload resumes (.pdf, .docx, .txt), automatically predict the job category, and extract key details such as emails and phone numbers.

The backend is built with FastAPI, using a Random Forest classifier with TF-IDF vectorization, making it ready for integration with frontend applications like React.


πŸ› οΈ Features

  • Predicts job category from uploaded resumes
  • Extracts emails and phone numbers
  • Handles multiple file formats: PDF, DOCX, TXT
  • REST API with FastAPI, easy integration with frontend
  • Lightweight, fast, and ready for deployment

πŸ“‚ Folder Structure


resume-api/
β”‚
β”œβ”€β”€ app.py # FastAPI backend
β”œβ”€β”€ model/
β”‚ β”œβ”€β”€ rf_classifier.pkl # Pre-trained Random Forest model
β”‚ └── tfidf_vectorizer.pkl # TF-IDF vectorizer
β”œβ”€β”€ requirements.txt # Python dependencies
β”œβ”€β”€ data/ # Optional sample resumes
└── README.md # Project description


βš™οΈ Installation & Setup

  1. Clone the repository:
git clone https://github.com/Bilal-73/Resume-Classification-and-Details-Extraction.git
cd Resume-Classification-and-Details-Extraction

Download Pre-trained Models

Place them in the model/ folder before running app.py.

πŸ§ͺ How it works

  • Upload resume via /upload-resume endpoint
  • Extract text from file using Textract
  • Transform text with TF-IDF vectorizer
  • Predict category using Random Forest model
  • Extract emails and phone numbers
  • Returns JSON:

About

AI-powered Resume Classification and Details Extraction API. Uses FastAPI, TF-IDF vectorization, and Random Forest to categorize resumes and extract key information. Lightweight, easy to integrate, and ready for deployment with external model downloads.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors