Effective approaches to combining lexical and syntactical information for code summarization. (24th September 2020)
- Record Type:
- Journal Article
- Title:
- Effective approaches to combining lexical and syntactical information for code summarization. (24th September 2020)
- Main Title:
- Effective approaches to combining lexical and syntactical information for code summarization
- Authors:
- Zhou, Ziyi
Yu, Huiqun
Fan, Guisheng - Abstract:
- Summary: Natural language summaries of source codes are important during software development and maintenance. Recently, deep learning based models have achieved good performance on the task of automatic code summarization, which encode token sequence or abstract syntax tree (AST) of code with neural networks. However, there has been little work on the efficient combination of lexical and syntactical information of code for better summarization quality. In this paper, we propose two general and effective approaches to leveraging both types of information: a convolutional neural network that aims to better extract vector representation of AST node for downstream models; and a Switch Network that learns an adaptive weight vector to combine different code representations for summary generation. We integrate these approaches into a comprehensive code summarization model, which includes a sequential encoder for token sequence of code and a tree based encoder for its AST. We evaluate our model on a large Java dataset. The experimental results show that our model outperforms several state‐of‐the‐art models on various metrics, and the proposed approaches contribute a lot to the improvements.
- Is Part Of:
- Software, practice & experience. Volume 50:Number 12(2020)
- Journal:
- Software, practice & experience
- Issue:
- Volume 50:Number 12(2020)
- Issue Display:
- Volume 50, Issue 12 (2020)
- Year:
- 2020
- Volume:
- 50
- Issue:
- 12
- Issue Sort Value:
- 2020-0050-0012-0000
- Page Start:
- 2313
- Page End:
- 2336
- Publication Date:
- 2020-09-24
- Subjects:
- code summarization -- deep learning -- program comprehension
Computer software -- Periodicals
Computer programming -- Periodicals
Computer programs -- Periodicals
005.3 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/spe.2893 ↗
- Languages:
- English
- ISSNs:
- 0038-0644
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.453000
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 14702.xml