A LSTM based method to complete the code by given chars/tokens.
install the requirement (python 3.5)
$ pip install -r requirements.txt
backend
$ cd ./lstm4backend
train token model
$ python train.py <model_name> token
train char model
$ python train.py <model_name> char
Note: dataset should be set inside the train.py
.
backend
$ cd ./lstm4backend
start serving
$ python serve.py
$ cd ./ui
using npm or yarn to start the application
$ yarn
or
$ npm install | npm start