paper-with-me

홈 › Papers

Machine Learning Based Source Code Classification Using Syntax Oriented Features

2017-03-04 · Shaul Zevin, Catherine Holzem

As of today the programming language of the vast majority of the published source code is manually specified or programmatically assigned based on the sole file extension. In this paper we show that the source code programming language identification task can be fully automated using machine learning techniques. We first define the criteria that a production-level automatic programming language identification solution should meet. Our criteria include accuracy, programming language coverage, extensibility and performance. We then describe our approach: How training files are preprocessed for extracting features that mimic grammar productions, and then how these extracted grammar productions are used for the training and testing of our classifier. We achieve a 99 percent accuracy rate while classifying 29 of the most popular programming languages with a Maximum Entropy classifier.

📄 PDF Abstract BibTeX arXiv:1703.07638

Code (0)

등록된 구현이 없습니다.

Tasks

BIG-bench Machine LearningClassificationCode ClassificationGeneral ClassificationLanguage Identification

Similar Papers 제목 키워드 기반

SynGEC: Syntax-Enhanced Grammatical Error Correction with a Tailored GEC-Oriented Parser

2022-10-22 · Yue Zhang, Bo Zhang, Zhenghua Li, Zuyi Bao 외

This work proposes a syntax-enhanced grammatical error correction (GEC) approach named SynGEC that effectively incorporates dependency syntactic information into the encoder part of GEC models. The key challenge for this…

Grammatical Error CorrectionSyntax Representation

Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Study

2023-03-13 · Zeming Dong, Qiang Hu, Yuejun Guo, Zhenya Zhang 외

Recent studies have demonstrated remarkable advancements in source code learning, which applies deep neural networks (DNNs) to tackle various software engineering tasks. Similar to other DNN-based domains, source code le…

Clone DetectionCode ClassificationData Augmentation

SYNFIX: Automatically Fixing Syntax Errors using Compiler Diagnostics

2021-04-29 · Toufique Ahmed, Noah Rose Ledesma, Premkumar Devanbu

Beginning programmers struggle with the complex grammar of modern programming languages like Java, and make lot of syntax errors. The diagnostic syntax error messages from compilers and IDEs are sometimes useful, but oft…

BIG-bench Machine LearningDiagnosticMulti-Label ClassificationMUlTI-LABEL-ClASSIFICATION+1

Program Classification Using Gated Graph Attention Neural Network for Online Programming Service

2019-03-09 · Mingming Lu, Dingwu Tan, Naixue Xiong, Zailiang Chen 외

The online programing services, such as Github,TopCoder, and EduCoder, have promoted a lot of social interactions among the service users. However, the existing social interactions is rather limited and inefficient due t…

General ClassificationGraph AttentionGraph Neural Network

Syntax-augmented Multilingual BERT for Cross-lingual Transfer

2021-06-03 · ACL 2021 5 · Wasi Uddin Ahmad, Haoran Li, Kai-Wei Chang, Yashar Mehdad

In recent years, we have seen a colossal effort in pre-training multilingual text encoders using large-scale corpora in many languages to facilitate cross-lingual transfer learning. However, due to typological difference…

Cross-Lingual Transfernamed-entity-recognitionNamed Entity RecognitionNamed Entity Recognition (NER)+5