计算机程序设计语言识别
Algorithmic Programming Language Identification
摘要:
由于网络上大量的代码无法识别,我们引入了一种实用的方法来算法识别源代码的程序设计语言。我们的工作是基于监督学习和智能统计特征。我们还探索了语法方法,但放弃了。在测试中,我们的实现大大优于依赖于贝叶斯分类器的现有工具。代码是用Python编写的,可在MIT许可证下使用。
英文摘要:
Motivated by the amount of code that goes unidentified on the web, we introduce a practical method for algorithmically identifying the programming language of source code. Our work is based on supervised learning and intelligent statistical features. We also explored, but abandoned, a grammatical approach. In testing, our implementation greatly outperforms that of an existing tool that relies on a Bayesian classifier. Code is written in Python and available under an MIT license.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。