assalw / hackforgood

➿Translators without borders impact classifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

➿ Hack for Good

Model sourcecode can be found in the src directory of this repository

Translators without borders impact classifier

Usage:

model.py train
model.py validate
model.py server
model.py predict <text>

Options:

-h --help     Show this screen.
train         Trains with the cleaned dataset and classifier.
validate      Run cross validation on the training set
server        Run API server
predict       Text to predict

Examples:

Train and test the machine learning model

python model.py train

Call API server:

Predict with the text "predict this text"

curl --request POST \
  --url 'http://127.0.0.1:5000/predict?text=predict%20this%20text&='

About

➿Translators without borders impact classifier


Languages

Language:Jupyter Notebook 94.0%Language:R 4.0%Language:Python 2.1%