Classify Kaggle Consumer Finance Complaints into 11 classes. Build the model with CNN (Convolutional Neural Network) and Word Embeddings on Tensorflow.
Input: consumer_complaint_narrative
Output: product
Example: python3 train.py ./data/consumer_complaints.csv.zip ./parameters.json
A directory will be created during training, and the trained model will be saved in this directory.
Provide the model directory (created when running train.py
) and new data to predict.py
.
python3 predict.py ./trained_model_1479757124/ ./data/small_samples.json