检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:周其林 王旭[2,3] 刘旭东[2,3] ZHOU Qilin;WANG Xu;LIU Xudong(Journalism and Communication Laboratory Center,Renmin University of China,Beijing 100872,China;School of Computer Science and Engineering,Beihang University,Beijing 100191,China;Beijing Advanced Innovation Center for Big Data and Brain Computing,Beihang University,Beijing 100191,China)
机构地区:[1]中国人民大学新闻传播实验中心,北京100872 [2]北京航空航天大学计算机学院,北京100191 [3]北京航空航天大学大数据科学与脑机智能高精尖创新中心,北京100191
出 处:《空间控制技术与应用》2021年第2期42-48,共7页Aerospace Control and Application
基 金:国家自然科学基金资助项目(62072017)。
摘 要:注释可以有效提高源代码的可读性、帮助开发者理解软件功能,对于软件的维护和演化起着关键作用.当前源代码注释自动生成方面的研究存在一定局限,一是没有深入挖掘词法信息;二是没能很好的融合词法和语法信息.因此,提出了基于神经网络融合模型的源代码注释自动生成方法,该方法利用编码器-解码器神经网络框架深度表征源代码的词法信息,结合基于语法树挖掘到的语法信息,使用融合机制形成更加全面的功能语义编码向量用于注释自动生成.通过在公开数据集上进行实验,该方法在BLEU4、METEOR等评价指标上均优于对比的模型,验证了方法的有效性.The comments are very helpful for understanding the source code and play an important role in software maintenance and evolution.Existing works show that the lack of source code comments is one common practice in real-world projects.Current studies on automatic source code comments generation have two limitations.Firstly,they only use much simple lexical information;secondly,they do not use the lexical and syntactic information well.In this work,we propose a neural network fusion model for source code comments generation based on the encoderdecoder framework.Our model can embed the lexical information better,represent the syntax information based on abstract syntax tree,and then produce a fusion encoder to learn both the lexical and syntactic information for source code comments generation.The experiments on the public benchmark indicate that our fusion model outperforms the previous models by the metrics such as BLEU4 and METEOR.
关 键 词:源代码注释 抽象语法树 编码器-解码器 融合模型
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.87