Skip to content

cap-ntu/autocomplete

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f48d4ec · Dec 7, 2022

History

44 Commits
Mar 2, 2020
Mar 31, 2020
Mar 31, 2020
Dec 7, 2022
Feb 21, 2020
Mar 10, 2020
Feb 21, 2020
Apr 14, 2020
Feb 23, 2020
Mar 2, 2020
Feb 20, 2020

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