oleges1/code-completion

Repository files navigation

Pytorch version of code completion with neural attention and pointer networks

  • refactor preprocessing code
  • add python to AST code
  • config for preprocessing
  • join training for type
  • python3 >= 3.6
  • torch >= 1.2, or tensorboadX for earlier versions
  • pyyaml
  • run python3 preprocess.py for preprocessing
  • run CUDA_VISIBLE_DEVICES=id python3 train.py --config=path/to/config.yml for training with specified config, list of available configscan be found at configs folder
modelvocab_size 1kvocab_size 10kvocab_size 50k
simple_lstm66.3365.761.68, 1 epoch
attn_lstm64.9565.7763.15, 1 epoch
pointer_mixture66.6267.0565.3, 3 epochs

Here will be examples of code generation

About

pytorch version of code completion with neural attention and pointer networks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published