Code samples summarization for knowledge exchange in developer community. (20th September 2022)
- Record Type:
- Journal Article
- Title:
- Code samples summarization for knowledge exchange in developer community. (20th September 2022)
- Main Title:
- Code samples summarization for knowledge exchange in developer community
- Authors:
- Guo, Shikai
Liu, Zhongyan
Song, Zixuan
Li, Hui
Chen, Rong - Abstract:
- Abstract: A question title's function is to generate readable titles and describe a problem encountered by the code. Previous studies often used an end‐to‐end sequence‐to‐sequence system to generate question title's from source code. However, long‐term dependencies are often difficult to capture, and this may result in an incomplete source code representation. To address this issue, we propose a Transformer for Generating Code Title (hereinafter referred to as TGCT) model. Specifically, the TGCT model uses the position coding mechanism to model paired relationships between source terms by applying relative position representations. Multiple self‐attention mechanism components are also used to capture long‐term dependencies of the code. Comprehensive experiments on datasets from five coding languages, namely Python, Java, JavaScript, C#, and SQL, are conducted, and the results show that TGCT outperforms state‐of‐the‐art models based on the measurements of BLEU and ROUGE in general. In addition, a cross‐sectional comparison experiment was conducted to verify the effects of different model parameters, different data set sizes, position coding mechanism, and self‐attention mechanism on model results.
- Is Part Of:
- Software, practice & experience. Volume 53:Number 2(2023)
- Journal:
- Software, practice & experience
- Issue:
- Volume 53:Number 2(2023)
- Issue Display:
- Volume 53, Issue 2 (2023)
- Year:
- 2023
- Volume:
- 53
- Issue:
- 2
- Issue Sort Value:
- 2023-0053-0002-0000
- Page Start:
- 347
- Page End:
- 365
- Publication Date:
- 2022-09-20
- Subjects:
- code summary -- multi‐head attention -- position encoding -- transformer
Computer software -- Periodicals
Computer programming -- Periodicals
Computer programs -- Periodicals
005.3 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/spe.3151 ↗
- 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:
- 24987.xml