arrow
返回

Generating class name in sequential manner using convolution attentionneural network

delete2022-08-01
delete1
PRE
AI
S
Sawan Rai *
R
Ramesh Chandra Belwal
A
Atul Gupta
DOI:10.1016/j.eswa.2022.116854delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Software code comprehension is strongly dependent on identifier names; therefore, software developers spenda lot of time assigning suitable names to identifiers. Manually suggesting a good name is a time takingand hard problem for developers. For automatic identifiers name recommendation, various techniques havebeen proposed. Most of the work has been done for method name prediction. We found very few researchworks on class name recommendation. A good class name communicates the class's intent, whereas bad onescreate confusion and frustration in the developer's mind. In this paper, we first analyze the existing classname recommendation approach for dynamically typed language. In this approach, we represent the natureor behavior of python classes in quantitative form using the embedding concept for heterogeneous graphs.Next, we use these embeddings to suggest class names. The first approach can only suggest the existing classnames. Therefore, we propose a new approach, which is based on the convolution attention model. In the newapproach, we try to generate class name as a token sequence, instead of whole class name at once. We use twovariants of the attention mechanism: simple attention and copy attention. Copy attention based model is ableto predict out-of-vocab tokens during prediction. Experimental results suggest that the convolution attentionmodel can predict accurate class name tokens.
Keyword:
Class name
Source code
Graph embeddings
Recommendation
Convolution network
Name prediction

期刊

Expert Systems with Applications 封面图
Expert Systems with Applications
IF:
7.5
论文数:
2.9W
被引数:
10.2W

机构

引用论文

引用论文

The Puerto Rico Gap Analysis Project Volume 1: land cover, vertebrate species distributions, and land stewardship
err
IF0
err2008-01-01
err0
errOAAI
errW. A. Gould; C. Alarcon; B. Fevold; M.E. Jimenez; S. Martinuzzi; G. Potts; M. Quinones; M. Solórzano; E. Ventosa
err分享
err收藏
A Critical Role for Purinergic Signalling in the Mechanisms Underlying Generation of BOLD fMRI Responses
err2015-04-01
err0
errOAAI
errJack A. Wells; Isabel N. Christie; Patrick S. Hosford; Robert T.R. Huckstepp; Plamena R. Angelova; Pirkko Vihko; Simon C. Cork; Andrey Y. Abramov; Anja G. Teschemacher; Sergey Kasparov; Mark F. Lythgoe; Alexander V. Gourine
err分享
err收藏
err分享
err收藏
Influence of the Total Porosity on the Properties of Sintered Materials—A Review
err2021-04-28
err0
errOAAI
errFátima Ternero; Luís Guerra Rosa; Petr Urban; Juan Manuel Montes; Francisco G. Cuevas
err分享
err收藏
Linguistic antipatterns: what they are and how developers perceive them
err2015-01-29
err86
PREAI
errArnaoudova, Venera; Di Penta, Massimiliano; Antoniol, Giuliano
err分享
err收藏
没有更多内容