YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Resume Classification using RNN

This project implements an end-to-end Recurrent Neural Network (RNN) to classify resumes into different job categories based on their content.

Project Structure

resume-classifier/
β”œβ”€β”€ data/
β”‚   └── resume_dataset.csv
β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ resume_model.pth
β”‚   β”œβ”€β”€ model_config.pkl
β”‚   β”œβ”€β”€ preprocessor.pkl
β”‚   └── training_history.npy
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ data_preprocessing.py
β”‚   β”œβ”€β”€ model.py
β”‚   β”œβ”€β”€ train.py
β”‚   └── predict.py
β”œβ”€β”€ templates/
β”‚   └── index.html
β”œβ”€β”€ app.py
β”œβ”€β”€ main.py
└── requirements.txt

Installation

pip install -r requirements.txt

Usage

Training

python main.py --mode train \
    --data-dir data \
    --epochs 20 \
    --batch-size 32 \
    --model-type rnn \
    --use-attention \
    --bidirectional

Web Interface (Flask)

python app.py

Then open http://localhost:5000 in your browser.

The web interface provides a clean, modern UI for classifying resumes with visual feedback and confidence scores.

Dataset

The model expects a CSV file with at least two columns:

  • Resume: The text content of the resume
  • Category: The job category/label

Model Architecture

RNN Model (LSTM/GRU)

  • Embedding Layer
  • Bidirectional LSTM/GRU Layer(s) with optional attention
  • Fully Connected Output Layer

CNN Model (Alternative)

  • Embedding Layer
  • Multiple Convolutional layers with different kernel sizes
  • Max Pooling
  • Fully Connected Output Layer

Features

  • Text Preprocessing: Cleaning, tokenization, vocabulary building
  • Attention Mechanism: Improved text representation
  • Early Stopping: Prevent overfitting
  • Learning Rate Scheduling: Adaptive learning rate
  • Top-k Predictions: Get multiple predicted categories with probabilities
  • Modern Web UI: Clean, responsive interface for easy predictions
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using arpitha9380/RNN 1