39 papers with code • 1 benchmarks • 7 datasets
LibrariesUse these libraries to find Code Summarization models and implementations
The ability to generate natural language sequences from source code snippets has a variety of applications such as code summarization, documentation, and retrieval.
To the best of our knowledge, most state-of-the-art approaches follow an encoder-decoder framework which encodes the code into a hidden space and then decode it into natural language space, suffering from two major drawbacks: a) Their encoders only consider the sequential content of code, ignoring the tree structure which is also critical for the task of code summarization, b) Their decoders are typically trained to predict the next word by maximizing the likelihood of next ground-truth word with previous ground-truth word given.
Source code (Context) and its parsed abstract syntax tree (AST; Structure) are two complementary representations of the same computer program.
HAConvGNN: Hierarchical Attention Based Convolutional Graph Neural Network for Code Documentation Generation in Jupyter Notebooks
Jupyter notebook allows data scientists to write machine learning code together with its documentation in cells.
Neural machine translation models are used to automatically generate a document from given source code since this can be regarded as a machine translation task.