| 注册
首页|期刊导航|计算机与数字工程|基于抽象语法树的编程题静态阅评算法

基于抽象语法树的编程题静态阅评算法

李四彤 祁云嵩

计算机与数字工程2024,Vol.52Issue(5):1428-1432,1448,6.
计算机与数字工程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

李四彤 1祁云嵩1

作者信息

  • 1. 江苏科技大学计算机学院 镇江 212100
  • 折叠

摘要

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)

计算机与数字工程

OACSTPCD

1672-9722

访问量0
|
下载量0
段落导航相关论文