The goal of this project is to generate a conversation based on facebook chat logs.
Requirements: Keras, Tensorflow, Numpy
You can install them by running:
pip install keras
pip install tensorflow
pip install numpy
To train this model:
- Download data from Facebook and move the chats you want to use to this folder.
- Run:
./parse.sh facebookchatdata.json
or
./parse.sh *.json
If you get permission errors just run:
chmod +x ./parse.sh - Run: python3 train.py
To test the model:
- Edit main.py, changing file_name to the file.hdf5 that you want to test.
file_name = "checkpoint.hdf5" - Run:
python3 main.py