基于二元模糊匹配的编程题智能评分方法  被引量:1

Intelligent Scoring Method for Programming Problems Based on Binary Fuzzy Matching

在线阅读下载全文

作  者:冷强奎[1] 刘雨晴 秦玉平 LENG Qiang-kui;LIU Yu-qing;QIN Yu-ping(School of Information Science and Technology,Bohai University,Jinzhou 121000,China;School of Engineering,Bohai University,Jinzhou 121000,China)

机构地区:[1]渤海大学信息科学与技术学院,辽宁锦州121000 [2]渤海大学工学院,辽宁锦州121000

出  处:《计算机技术与发展》2020年第2期71-74,共4页Computer Technology and Development

基  金:国家自然科学基金(61602056);辽宁省自然科学基金(20180550525);渤海大学教学改革研究项目(BDJG2016YA01)

摘  要:针对传统编程题自动评分方法不能准确衡量学生程序与参考答案之间的接近程度等问题,提出了一种基于二元模糊匹配的编程题智能评分方法。第一元为结构匹配,检测学生程序在变量声明、数据输入、函数调用、控制结构等方面与参考答案的相似程度,目的是快速判断学生程序中是否存在关键的采分点。第二元为词语匹配,首先进行词频统计,以确定每个词的权重。然后,分别构造学生程序与参考答案的向量空间模型,并计算两者的余弦相似度,来作为评判词语相似的依据。最终的分数由结构相似度和词语相似度的加权分数计算得出。由于该二元匹配方法不关心程序中结构/词语的先后顺序和是否为精确表达,因此被称为是模糊的。仿真实验表明,该方法具有不错的评分准确性,尽管与人工评分相比还存在一定的差距,但当试题规模较大时,可以作为人工评分的替代手段。Aiming at the problem that the traditional automatic scoring method for students’programming assignments can not accurately measure the proximity between the student program and the answer,a method of intelligent scoring based on binary fuzzy matching(BFM)is proposed.The first operation of BFM is called structural match,which detects the similarity of the student program to the answer in terms of variable declaration,data input,function call,control structure,etc.,and aims to quickly determine whether there is a key score point in the student program.The second operation of BFM is called word match.The word frequency statistics are first performed to determine the weight of each word.Then,the vector space models of the student program and the answer are constructed respectively.Next,the cosine similarity is calculated as the basis for judging the similarity of the words.The final score is synthesized by the separate weighted scores of structural similarity and word similarity.Since the binary matching method does not care about the order of structures/words in the program and whether these terms are accurately expressed,it is said to be fuzzy.Simulation experiments show that the method has excellent scoring accuracy.Although there is a certain gap from the manual scoring,when the scale of programs is large,it can be used as an alternative to manual scoring.

关 键 词:二元模糊匹配 自动评分 词频统计 余弦相似度 向量空间模型 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象