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

一种在深度学习中处理Source Code词汇表外标识符的简单方法

A Simple Approach for Handling Out-of-Vocabulary Identifiers in Deep Learning for Source Code

HSE University(高等经济大学)

Nadezhda Chirkova, Sergey Troshin

摘要:

将自然语言处理模型应用到源代码处理任务中正在引起人们的兴趣。将深度学习应用于软件工程的一个主要问题是,源代码通常包含大量罕见的标识符,从而导致庞大的词汇表。我们提出了一个简单,但有效的方法,基于标识符匿名化,处理词汇表(OOV)标识符。我们的方法可以被视为一个预处理步骤,因此,允许容易实现。我们表明,建议的OOV匿名化方法显着提高了性能的Transformer在两个代码处理任务:代码完成和错误修复。

英文摘要:

There is an emerging interest in the application of natural language processing models to source code processing tasks. One of the major problems in applying deep learning to software engineering is that source code often contains a lot of rare identifiers, resulting in huge vocabularies. We propose a simple, yet effective method, based on identifier anonymization, to handle out-of-vocabulary (OOV) identifiers. Our method can be treated as a preprocessing step and, therefore, allows for easy implementation. We show that the proposed OOV anonymization method significantly improves the performance of the Transformer in two code processing tasks: code completion and bug fixing.

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

↑