Code Semantics Learning with Deep Neural Networks: An AI-Based Approach for Programming Education.

ICCS (5)(2023)

引用 0|浏览14
暂无评分
摘要
Modern programming languages are very complex, diverse, and non-uniform in their structure, code composition, and syntax. Therefore, it is a difficult task for computer science students to retrieve relevant code snippets from large code repositories, according to their programming course requirements. To solve this problem, an AI-based approach is proposed, for students to better understand and learn code semantics, with solutions for real-world coding exercises. First, a large number of solutions are collected from a course titled “Algorithms and Data Structures” and preprocessed, by removing unnecessary elements. Second, the solution code is converted into a sequence of words and tokenized. Third, the sequence of tokens is used to train and validate the model, through a word embedding layer. Finally, the model is used for the relevant code retrieval and classification task, for the students. In this study, a bidirectional long short-term memory neural network (BiLSTM) is used as the core deep neural network model. For the experiment, approximately 120,000 real-world solutions from three datasets are used. The trained model achieved an average precision, recall, F1 score, and accuracy of 94.35%, 94.71%, 94.45%, and 95.97% for the code classification task, respectively. These results show that the proposed approach has potential for use in programming education.
更多
查看译文
关键词
programming education,semantics,deep neural networks,ai-based
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要