计算机科学 > 计算与语言
[提交于 2020年4月14日]
标题:Code Completion using Neural Attention and Byte Pair Encoding
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this paper, we aim to do code completion based on implementing a Neural Network from Li et. al.. Our contribution is that we use an encoding that is in-between character and word encoding called Byte Pair Encoding (BPE). We use this on the source code files treating them as natural text without first going through the abstract syntax tree (AST). We have implemented two models: an attention-enhanced LSTM and a pointer network, where the pointer network was originally introduced to solve out of vocabulary problems. We are interested to see if BPE can replace the need for the pointer network for code completion.
提交历史
来自:Nikhil Saldanha[v1] 2020年4月14日 星期二 08:00:40 UTC