Semantic Source Code Models Using Identifier Embeddings
Not on the map. Why?
Abstract (arXiv)
The emergence of online open source repositories in the recent years has led to an explosion in the volume of openly available source code, coupled with metadata that relate to a variety of software development activities. As an effect, in line with recent advances in machine learning research, software maintenance activities are switching from symbolic formal methods to data-driven methods. In this context, the rich semantics hidden in source code identifiers provide opportunities for building semantic representations of code which can assist tasks of code search and reuse. To this end, we deliver in the form of pretrained vector space models, distributed code representations for six popular programming languages, namely, Java, Python, PHP, C, C++, and C#. The models are produced using fastText, a state-of-the-art library for learning word representations. Each model is trained on data from a single programming language; the code mined for producing all models amounts to over 13.000 repositories. We indicate dissimilarities between natural language and source code, as well as variations in coding conventions in between the different programming languages we processed. We describe how these heterogeneities guided the data preprocessing decisions we took and the selection of the training parameters in the released models. Finally, we propose potential applications of the models and discuss limitations of the models.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 15 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 2; 2024: 0; 2025: 0; 2026: 1.
6 papers.
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2021Code2Image: Intelligent Code Analysis by Computer Vision Techniques and Application to Vulnerability Predictioncited by 2
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognitioncited by 1
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2023Test Case Recommendations with Distributed Representation of Code Syntactic Featurescited by 0
- 2026SemChunk-C: Semantic Segmentation for C Codecited by 0
- 2026SemChunk-C: Semantic Segmentation for C Code12 May 2026
- 2023Test Case Recommendations with Distributed Representation of Code Syntactic Features4 Oct 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition5 Apr 2022
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021Code2Image: Intelligent Code Analysis by Computer Vision Techniques and Application to Vulnerability Prediction7 May 2021