跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 神经与演化计算

arXiv:1611.08307 (cs)
[提交于 2016年11月24日]

标题:Learning Python Code Suggestion with a Sparse Pointer Network

作者:Avishkar Bhoopchand, Tim Rocktäschel, Earl Barr, Sebastian Riedel
查看论文《Learning Python Code Suggestion with a Sparse Pointer Network》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:To enhance developer productivity, all modern integrated development environments (IDEs) include code suggestion functionality that proposes likely next tokens at the cursor. While current IDEs work well for statically-typed languages, their reliance on type annotations means that they do not provide the same level of support for dynamic programming languages as for statically-typed languages. Moreover, suggestion engines in modern IDEs do not propose expressions or multi-statement idiomatic code. Recent work has shown that language models can improve code suggestion systems by learning from software repositories. This paper introduces a neural language model with a sparse pointer network aimed at capturing very long-range dependencies. We release a large-scale code suggestion corpus of 41M lines of Python code crawled from GitHub. On this corpus, we found standard neural language models to perform well at suggesting local phenomena, but struggle to refer to identifiers that are introduced many tokens in the past. By augmenting a neural language model with a pointer network specialized in referring to predefined classes of identifiers, we obtain a much lower perplexity and a 5 percentage points increase in accuracy for code suggestion compared to an LSTM baseline. In fact, this increase in code suggestion accuracy is due to a 13 times more accurate prediction of identifiers. Furthermore, a qualitative analysis shows this model indeed captures interesting long-range dependencies, like referring to a class member defined over 60 tokens in the past.
评论: Under review as a conference paper at ICLR 2017
主题: 神经与演化计算 (cs.NE); 人工智能 (cs.AI); 计算与语言 (cs.CL); 软件工程 (cs.SE)
引用方式: arXiv:1611.08307 [cs.NE]
  (或者 arXiv:1611.08307v1 [cs.NE] 对于此版本)
  https://doi.org/10.48550/arXiv.1611.08307

提交历史

来自:Tim Rocktäschel
[v1] 2016年11月24日 星期四 21:01:46 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.NE
< 上一篇   |   下一篇 >
最新 | 近期 | 2016-11
切换浏览方式为:
cs
cs.AI
cs.CL
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站