首页> 外文期刊>Software: Practice and experience >Code samples summarization for knowledge exchange in developer community
【24h】

Code samples summarization for knowledge exchange in developer community

机译:Code samples summarization for knowledge exchange in developer community

获取原文
获取原文并翻译 | 示例
       

摘要

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.

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号