首页    期刊浏览 2024年07月08日 星期一
登录注册

文章基本信息

  • 标题:Graph embedding code prediction model integrating semantic features
  • 本地全文:下载
  • 作者:Yang, Kang ; Yu, Huiqun ; Fan, Guisheng
  • 期刊名称:Computer Science and Information Systems
  • 印刷版ISSN:1820-0214
  • 电子版ISSN:2406-1018
  • 出版年度:2020
  • 卷号:17
  • 期号:3
  • 页码:907-926
  • DOI:10.2298/CSIS190908027Y
  • 出版社:ComSIS Consortium
  • 摘要:With the advent of Big Code, code prediction has received widespread attention. However, the state-of-the-art code prediction techniques are inadequate in terms of accuracy, interpretability and efficiency. Therefore, in this paper, we propose a graph embedding model that integrates code semantic features. The model extracts the structural paths between the nodes in source code file’s Abstract Syntax Tree(AST). Then, we convert paths into training graph and extracted interdependent semantic structural features from the context of AST. Semantic structure features can filter predicted candidate values and effectively solve the problem of Out-of- Word(OoV). The graph embedding model converts the structural features of nodes into vectors which facilitates quantitative calculations. Finally, the vector similarity of the nodes is used to complete the prediction tasks of TYPE and VALUE. Experimental results show that compared with the existing state-of-the-art method, our method has higher prediction accuracy and less time consumption.
  • 关键词:Big Code; Graph Embedding; Code Prediction
国家哲学社会科学文献中心版权所有