Generating class name in sequential manner using convolution attentionneural network

EXPERT SYSTEMS WITH APPLICATIONS(2022)

引用 1|浏览11
暂无评分
摘要
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.
更多
查看译文
关键词
Class name,Source code,Graph embeddings,Recommendation,Convolution network,Name prediction
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要