• 综合
  • 标题
  • 关键词
  • 摘要
  • 学者
  • 期刊-刊名
  • 期刊-ISSN
  • 会议名称
搜索

作者:

Wang, Chengcheng (Wang, Chengcheng.) | Su, Hang (Su, Hang.) | Gao, Hongyu (Gao, Hongyu.) | Zhang, Libao (Zhang, Libao.)

收录:

EI Scopus

摘要:

Automatic generation of code comments can help alleviate software project development and maintenance difficulties caused by insufficient, missing, or mismatched code comments. Previous works have demonstrated that identifying the intention of code and the corresponding comment categories can enhance the accuracy of automatic code comment generation. However, this method's effectiveness relies on the expertise of programmers and requires a significant amount of human effort. We propose an automatic code comment generation method based on different keyword sequences to address this issue. We first investigate the verbs in code comments of mainstream public datasets and use automated methods to classify the comments into three categories. Then we extract and encode the keyword sequences of the code according to the comment category using different ways. The encoded sequences are combined with three classical comment generation models to generate comments automatically. Additionally, an algorithm for selecting API comments is proposed to address the issue of API comment quantity causing a decrease in the quality of generated comments during the keyword selection process. Experimental results indicate that the performance of the baseline model can be improved in terms of BLEU, ROUGE-L, and BLEU-DC metrics. In addition, compared with two models that combine other information, there is a certain degree of improvement in terms of three metrics, indicating that the proposed method can generate code comments more accurately. © 2023 IEEE.

关键词:

Automatic programming Computer software maintenance Classification (of information)

作者机构:

  • [ 1 ] [Wang, Chengcheng]Beijing University of Technology, Faculty of Information Technology, Beijing, China
  • [ 2 ] [Su, Hang]Beijing University of Technology, Faculty of Information Technology, Beijing, China
  • [ 3 ] [Gao, Hongyu]Beijing University of Technology, Faculty of Information Technology, Beijing, China
  • [ 4 ] [Zhang, Libao]Beijing University of Technology, Faculty of Information Technology, Beijing, China

通讯作者信息:

电子邮件地址:

查看成果更多字段

相关关键词:

相关文章:

来源 :

年份: 2023

页码: 57-64

语种: 英文

被引次数:

WoS核心集被引频次:

SCOPUS被引频次:

ESI高被引论文在榜: 0 展开所有

万方被引频次:

中文被引频次:

近30日浏览量: 0

归属院系:

在线人数/总访问数:535/4966239
地址:北京工业大学图书馆(北京市朝阳区平乐园100号 邮编:100124) 联系我们:010-67392185
版权所有:北京工业大学图书馆 站点建设与维护:北京爱琴海乐之技术有限公司