首页> 外文期刊>International journal of semantic computing >Statistical Unigram Analysis for Source Code Repository
【24h】

Statistical Unigram Analysis for Source Code Repository

机译:源代码存储库的统计UNIGRAM分析

获取原文
获取原文并翻译 | 示例
           

摘要

Unigram is a fundamental element of n-gram in natural language processing. However, unigrams collected from a natural language corpus are unsuitable for solving problems in the domain of computer programming languages. In this paper, we analyze the properties of unigrams collected from an ultra-large source code repository. Specifically, we have collected 1.01 billion unigrams from 0.7 million open source projects hosted at GitHub.com. By analyzing these unigrams, we have discovered statistical properties regarding (1) how developers name variables, methods, and classes, and (2) how developers choose abbreviations. We describe a probabilistic model which relies on these properties for solving a well-known problem in source code analysis: how to expand a given abbreviation to its original indented word. Our empirical study shows that using the unigrams extracted from source code repository outperforms the using of the natural language corpus by 21% when solving the domain specific problems.
机译:Uniagram是自然语言处理中n-gram的基本要素。然而,从自然语言语料库中收集的UNIGRAM不适合解决计算机编程语言领域的问题。在本文中,我们分析了从超大型源代码库收集的UNIGRAMS的属性。具体而言,我们从Github.com托管的070万开源项目中收集了1201亿卢比的UNIGRAM。通过分析这些Unigrams,我们已经发现了关于(1)开发人员名称变量,方法和类的统计属性,以及(2)开发人员如何选择缩写。我们描述了一个概率模型,依赖于这些属性来解决源代码分析中的众所周知的问题:如何将给定的缩写扩展到其原始缩进字。我们的实证研究表明,使用从源代码库中提取的UNIGRAMS在解决域特定问题时,使用21%的自然语言语料库的使用优于使用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号