首页 | 官方网站   微博 | 高级检索  
     

基于二元模糊匹配的编程题智能评分方法
引用本文:冷强奎,刘雨晴,秦玉平.基于二元模糊匹配的编程题智能评分方法[J].计算机技术与发展,2020(2):71-74.
作者姓名:冷强奎  刘雨晴  秦玉平
作者单位:渤海大学信息科学与技术学院;渤海大学工学院
基金项目:国家自然科学基金(61602056);辽宁省自然科学基金(20180550525);渤海大学教学改革研究项目(BDJG2016YA01)
摘    要:针对传统编程题自动评分方法不能准确衡量学生程序与参考答案之间的接近程度等问题,提出了一种基于二元模糊匹配的编程题智能评分方法。第一元为结构匹配,检测学生程序在变量声明、数据输入、函数调用、控制结构等方面与参考答案的相似程度,目的是快速判断学生程序中是否存在关键的采分点。第二元为词语匹配,首先进行词频统计,以确定每个词的权重。然后,分别构造学生程序与参考答案的向量空间模型,并计算两者的余弦相似度,来作为评判词语相似的依据。最终的分数由结构相似度和词语相似度的加权分数计算得出。由于该二元匹配方法不关心程序中结构/词语的先后顺序和是否为精确表达,因此被称为是模糊的。仿真实验表明,该方法具有不错的评分准确性,尽管与人工评分相比还存在一定的差距,但当试题规模较大时,可以作为人工评分的替代手段。

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

Intelligent Scoring Method for Programming Problems Based on Binary Fuzzy Matching
LENG Qiang-kui,LIU Yu-qing,QIN Yu-ping.Intelligent Scoring Method for Programming Problems Based on Binary Fuzzy Matching[J].Computer Technology and Development,2020(2):71-74.
Authors:LENG Qiang-kui  LIU Yu-qing  QIN Yu-ping
Affiliation:(School of Information Science and Technology,Bohai University,Jinzhou 121000,China;School of Engineering,Bohai University,Jinzhou 121000,China)
Abstract: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.
Keywords:binary fuzzy matching  automatic scoring  word frequency statistics  cosine similarity  vector space model
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号