Skip to content

cap-ntu/autocomplete

Repository files navigation

Automatically Code Suggestion by Neural Network

A LSTM based method to complete the code by given chars/tokens.

Train Model

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.

Serving

backend

$ cd ./lstm4backend

start serving

$ python serve.py

Web Application

$ cd ./ui

using npm or yarn to start the application

$ yarn 

or

$ npm install | npm start

About

code completion using neural network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •