Skip to content
forked from proksch/sms1

Project 1 for the course Release Engineering for Machine Learning Applications

Notifications You must be signed in to change notification settings

sr1998/sms1_REMLA

 
 

Repository files navigation

SMS Spam Detection Using Machine Learning

This project is used a starting point for the course Release Engineering for Machine Learning Applications (REMLA) taught at the Delft University of Technology by Prof. Luís Cruz and Prof. Sebastian Proksch.

The codebase was originally adapted from: https://github.com/rohan8594/SMS-Spam-Detection

Instructions for Compiling

a) Clone repo.

$ git clone https://github.com/rohan8594/SMS-Spam-Detection.git
$ cd SMS-Spam-Detection

b) Install dependencies.

$ python -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

c) create output directory

mkdir output

d) Run various scripts

$ python src/get_data.py
$ python src/read_data.py
$ python src/text_preprocessing.py
$ python src/text_classification.py

e) Serve the model as a REST API

$ python src/serve_model.py

You can test the API using the following:

curl -X POST "http://127.0.0.1:8080/predict" -H  "accept: application/json" -d "{sms: hello world!}"

Alternatively, you can access the UI using your browser: http://127.0.0.1:8080/apidocs

About

Project 1 for the course Release Engineering for Machine Learning Applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Jupyter Notebook 85.9%
  • Python 13.9%
  • Dockerfile 0.2%