arrow
返回

CodeGRU: Context-aware deep learning with gated recurrent unit for source code modeling

delete2020-09-01
delete29
PRE
AI
Y
Yasir Hussain
黄
黄志球 (Zhiqiu Huang) *
周
周余 (Yu Zhou)
S
Senzhang Wang
DOI:10.1016/j.infsof.2020.106309delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Context: Recently deep learning based Natural Language Processing (NLP) models have shown great potential in the modeling of source code. However, a major limitation of these approaches is that they take source code as simple tokens of text and ignore its contextual, syntactical and structural dependencies. Objective: In this work, we present CodeGRU, a gated recurrent unit based source code language model that is capable of capturing source code's contextual, syntactical and structural dependencies. Method: We introduce a novel approach which can capture the source code context by leveraging the source code token types. Further, we adopt a novel approach which can learn variable size context by taking into account source code's syntax, and structural information. Results: We evaluate CodeGRU with real-world data set and it shows that CodeGRU outperforms the state-of-the-art language models and help reduce the vocabulary size up to 24.93%. Unlike previous works, we tested CodeGRU with an independent test set which suggests that our methodology does not requisite the source code comes from the same domain as training data while providing suggestions. We further evaluate CodeGRU with two software engineering applications: source code suggestion, and source code completion. Conclusion: Our experiment confirms that the source code's contextual information can be vital and can help improve the software language models. The extensive evaluation of CodeGRU shows that it outperforms the state-of-the-art models. The results further suggest that the proposed approach can help reduce the vocabulary size and is of practical use for software developers.
Keyword:
Machine learning
Deep learning
Software language models
Source code suggestion
Source code completion
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Information and Software Technology 封面图
Information and Software Technology
IF:
4.3
论文数:
3.8K
被引数:
7.7K

机构

暂无机构信息
引用论文

引用论文

(+)-Mycotrienins I and II: Relative and Absolute Stereochemistry
err1991-02-01
err0
PREAI
errAmos B. Smith; John L. Wood; Satoshi Ōmura
err分享
err收藏
Improving code readability classification using convolutional neural networks
err2018-12-01
err34
PREAI
errMi, Qing; Keung, Jacky; Xiao, Yan; Mensah, Solomon; Gao, Yujin
err分享
err收藏
Machine translation-based bug localization technique for bridging lexical gap
err2018-07-01
err31
PREAI
errXiao, Yan; Keung, Jacky; Bennin, Kwabena E.; Mi, Qing
err分享
err收藏
err分享
err收藏
没有更多内容