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.
- 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
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
- Clone the repository:
git clone https://github.com/Bilal-73/Resume-Classification-and-Details-Extraction.git
cd Resume-Classification-and-Details-ExtractionPlace them in the model/ folder before running app.py.
- 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: