Skip to content

Mohataseem89/crime-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crime Classifier

A machine learning project that classifies crime report narratives into categories using NLTK and scikit-learn.
The goal is to demonstrate natural language processing (NLP) techniques for text preprocessing, feature extraction, and classification.

Crime-classifier


Features

  • Preprocessing of crime report text with:
    • Lowercasing, punctuation removal, and stemming (Snowball Stemmer).
    • Stopword filtering.
    • Word bigram generation for context.
  • Two classification models implemented:
    • Linear SVC (Support Vector Classifier)
    • Maximum Entropy (MaxEnt)
  • Training and testing pipeline with accuracy evaluation.
  • Customizable training and test datasets (CSV format).


🛠 Installation

Clone the repository and install dependencies:

git clone https://github.com/Mohataseem89/lapd-classifier.git
cd crime-classifier
npm install
npm start

🧑‍💻 Author

Mohataseem Khan 📧 Connect with me: LinkedInGitHub

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors