Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
- This model was built with **CNN, RNN (LSTM and GRU) and Word Embeddings** on **Tensorflow**.

### Data: [Kaggle San Francisco Crime](https://www.kaggle.com/c/sf-crime/data)
- Input: **Descript**
- Input: **Description**
- Output: **Category**
- Examples:

Descript | Category
Description | Category
-----------|-----------
GRAND THEFT FROM LOCKED AUTO|LARCENY/THEFT
POSSESSION OF NARCOTICS PARAPHERNALIA|DRUG/NARCOTIC
AIDED CASE, MENTAL DISTURBED|NON-CRIMINAL
AGGRAVATED ASSAULT WITH BODILY FORCE|ASSAULT
ATTEMPTED ROBBERY ON THE STREET WITH A GUN|ROBBERY

### Train:
- Command: python3 train.py train_data.file train_parameters.json
- Example: ```python3 train.py ./data/train.csv.zip ./training_config.json```

### Predict:
- Command: python3 predict.py ./trained_results_dir/ new_data.csv
- Example: ```python3 predict.py ./trained_results_1478563595/ ./data/small_samples.csv```

### Reference:
- [Implement a cnn for text classification in tensorflow](http://www.wildml.com/2015/12/implementing-a-cnn-for-text-classification-in-tensorflow/)