文章引用说明 更多>> (返回到该文章)

潘旭, 康慕宁 (2011) 基于ANTLR的试卷识别和导入系统的研究. 电子设计工程, 7, 45-49.

被以下文章引用:

  • 标题: 采用语法分析和编辑距离的SQL脚本评阅方法The Automatic Marking Method of SQL Script Based on Syntax Analysis and Levenshtein Distance

    作者: 刘霞, 陶莉, 周余洪, 马可辛, 刘晓强

    关键字: SQL语句, 自动阅卷, 词法分析, 语法分析, 字符串编辑距离 SQL Sentence; Automatic Marking; Lexical Analysis; Syntax Analysis; Levenshtein Distance

    期刊名称: 《Software Engineering and Applications》, Vol.3 No.1, 2014-02-21

    摘要: 针对数据库测试中SQL脚本类题目,提出基于语法分析和字符串编辑距离相结合的自动阅卷算法。该算法首先对答案进行词法分析和语法分析,获得SQL语句的语法分析树,并基于字符串编辑距离从标准答案集中选择最匹配的标准答案,以及对语法树的节点进行相似度比较,并根据评分标准,实现题目的自动评阅。阅卷系统采用开源语法分析器——ANTLR3.4和VS2010实现自动评阅。该自动阅卷算法得到参考评分,同时可以指出错误点,并且更好地支持答案的多样性和容错性,实现高效率、较精确的阅卷结果。 An automatic marking algorithm based on syntax analysis and string Levenshtein distance for SQL script in database tests was proposed. Firstly, through the lexical analysis and syntax analysis for student’s answer, the syntax analysis tree is obtained. Secondly, the most matched standard answer is chosen from the standard answers set by comparing the string edit distance between the student’s answer and the standard answers. Thirdly, by comparing the similarity of all the corresponding nodes of the two syntax analysis tree, the mark is achieved based on the score value of the standard answer. The marking system is implemented using open source parser—ANTLR3.4 and VS2010. This automatic marking method not only can give reference scores, but also point out the error position. Furthermore, it supports efficient and accurate marking for multi-answers with fault tolerance.

在线客服:
对外合作:
联系方式:400-6379-560
投诉建议:feedback@hanspub.org
客服号

人工客服,优惠资讯,稿件咨询
公众号

科技前沿与学术知识分享