arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.12693cs.SEcs.CLcs.LG
收藏

关于Source Code循环神经网络的变量嵌入

On the Embeddings of Variables in Recurrent Neural Networks for Source Code

HSE University(高等经济大学)

Nadezhda Chirkova

摘要:

源代码处理在很大程度上依赖于自然语言处理(NLP)中广泛使用的方法,但涉及需要考虑以实现更高质量的细节。这种特殊性的一个例子是,变量的语义不仅由其名称定义,还由变量出现的上下文定义。在这项工作中,我们开发了动态嵌入,一个经常性的机制,调整学习的变量的语义时,它获得更多的信息,变量在程序中的作用。我们表明,使用所提出的动态嵌入显着提高了递归神经网络的性能,在代码完成和错误修复任务。

英文摘要:

Source code processing heavily relies on the methods widely used in natural language processing (NLP), but involves specifics that need to be taken into account to achieve higher quality. An example of this specificity is that the semantics of a variable is defined not only by its name but also by the contexts in which the variable occurs. In this work, we develop dynamic embeddings, a recurrent mechanism that adjusts the learned semantics of the variable when it obtains more information about the variable's role in the program. We show that using the proposed dynamic embeddings significantly improves the performance of the recurrent neural network, in code completion and bug fixing tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑