paper-with-me

Papers

Automatic Source Code Summarization with Extended Tree-LSTM

2019-06-19 · Yusuke Shido, Yasuaki Kobayashi, Akihiro Yamamoto, Atsushi Miyamoto, Tadayuki Matsumura

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. Source code summarization is one of the components for automatic document generation, which generates a summary in natural language from given source code. This suggests that techniques used in neural machine translation, such as Long Short-Term Memory (LSTM), can be used for source code summarization. However, there is a considerable difference between source code and natural language: Source code is essentially {\em structured}, having loops and conditional branching, etc. Therefore, there is some obstacle to apply known machine translation models to source code. Abstract syntax trees (ASTs) capture these structural properties and play an important role in recent machine learning studies on source code. Tree-LSTM is proposed as a generalization of LSTMs for tree-structured data. However, there is a critical issue when applying it to ASTs: It cannot handle a tree that contains nodes having an arbitrary number of children and their order simultaneously, which ASTs generally have such nodes. To address this issue, we propose an extension of Tree-LSTM, which we call \emph{Multi-way Tree-LSTM} and apply it for source code summarization. As a result of computational experiments, our proposal achieved better results when compared with several state-of-the-art techniques.

📄 PDF Abstract BibTeX arXiv:1906.08094

Code (1)

sh1doy/summarization_tf 공식 구현 tf

Tasks

Code SummarizationMachine TranslationSource Code SummarizationTranslation

Similar Papers 제목 키워드 기반

Improving Code Summarization with Block-wise Abstract Syntax Tree Splitting

2021-03-14 · Chen Lin, Zhichao Ouyang, Junqing Zhuang, Jianqiang Chen 외

Automatic code summarization frees software developers from the heavy burden of manual commenting and benefits software development and maintenance. Abstract Syntax Tree (AST), which depicts the source code's syntactic s…

Code SummarizationSource Code Summarization

Summarization Programs: Interpretable Abstractive Summarization with Neural Modular Trees

2022-09-21 · Swarnadeep Saha, Shiyue Zhang, Peter Hase, Mohit Bansal

Current abstractive summarization models either suffer from a lack of clear interpretability or provide incomplete rationales by only highlighting parts of the source document. To this end, we propose the Summarization P…

Abstractive Text SummarizationSentenceSentence Fusion

GN-Transformer: Fusing Sequence and Graph Representation for Improved Code Summarization

2021-11-17 · Junyan Cheng, Iordanis Fostiropoulos, Barry Boehm

As opposed to natural languages, source code understanding is influenced by grammatical relationships between tokens regardless of their identifier name. Graph representations of source code such as Abstract Syntax Tree …

Code Summarization

Long-Range Modeling of Source Code Files with eWASH: Extended Window Access by Syntax Hierarchy

2021-09-17 · EMNLP 2021 11 · Colin B. Clement, Shuai Lu, Xiaoyu Liu, Michele Tufano 외

Statistical language modeling and translation with transformers have found many successful applications in program understanding and generation tasks, setting high benchmarks for tools in modern software development envi…

Code CompletionCode GenerationCode SummarizationLanguage Modeling+3

AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarization

2021-12-02 · Ze Tang, Chuanyi Li, Jidong Ge, Xiaoyu Shen 외

Code summarization aims to generate brief natural language descriptions for source code. As source code is highly structured and follows strict programming language grammars, its Abstract Syntax Tree (AST) is often lever…

Code Summarization