计算机与数字工程2024,Vol.52Issue(5):1428-1432,1448,6.DOI:10.3969/j.issn.1672-9722.2024.05.029
基于抽象语法树的编程题静态阅评算法
Static Evaluation Algorithm of Programming Problems Based on AST
摘要
Abstract
Aiming at the problems of heavy manual reviewing labor and low running review security in the process of tradition-al computer program review,this paper proposes an algorithm for static review of programming questions based on AST.First,it seg-ments the answer source code by sentence and generates the AST of the corresponding sentence,and introduces the pre-training model based on the bidirectional encoder to realize node vectorization.Then,it extracts the vocabulary through the specific convolu-tional neural network and bidirectional tree convolutional neural network feature and structural features are combined to achieve fea-ture integration.Finally,the fusion features are input into the deep neural network for multi-category review.Experimental results show that compared with traditional static analysis algorithms,this algorithm has a 5.1%improvement in review accuracy,and it is a feasible method for reviewing programming questions.关键词
抽象语法树/自动阅评/卷积神经网络/预训练模型Key words
AST/automatic evaluation/CNN/BERT分类
信息技术与安全科学引用本文复制引用
李四彤,祁云嵩..基于抽象语法树的编程题静态阅评算法[J].计算机与数字工程,2024,52(5):1428-1432,1448,6.基金项目
中国高校产学研创新基金项目(编号:2019ITA01047)资助. (编号:2019ITA01047)