• Stars
    star
    236
  • Rank 170,480 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Summarizing Source Code using a Neural Attention Model - CODENN

Run CODENN

See details of CODENN in our paper

Summarizing Source Code using a Neural Attention Model (https://github.com/sriniiyer/codenn/blob/master/summarizing_source_code.pdf)

Requirements

Setup environment

export PYTHONPATH=~/codenn/src/:~/codenn/src/sqlparse export CODENN_DIR=~/codenn/ export CODENN_WORK=./workdir

Build both csharp and sql datasets

Install modified sqlparse

cd src/sqlparse/ sudo python setup.py install

Build datasets

cd src/model ./buildData.sh

Train codenn models and predict on test set

./run.sh {sql|csharp}