A Novel Neural Source Code Representation Based on Abstract Syntax Tree
Beihang University · University of Newcastle Australia
Abstract
Exploiting machine learning techniques for analyzing programs has attracted much attention. One key problem is how to represent code fragments well for follow-up analysis. Traditional information retrieval based methods often treat programs as natural language texts, which could miss important semantic information of source code. Recently, state-of-the-art studies demonstrate that abstract syntax tree (AST) based neural models can better represent source code. However, the sizes of ASTs are usually large and the existing models are prone to the long-term dependency problem. In this paper, we propose a novel AST-based Neural Network (ASTNN) for source code representation. Unlike existing models that work on…
Citation impact
- FWCI
- 96.60
- Percentile
- 100%
- References
- 87
Authors
6Topics & keywords
- Computer science
- Abstract syntax tree
- Source code
- Artificial intelligence
- Abstract syntax
- Natural language processing
- Statement (logic)
- Syntax
- Quality Education