SPRAG: a Short Programming Related Answer Grading Dataset | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article SPRAG: a Short Programming Related Answer Grading Dataset Sridevi Bonthu, S Rama Sree, M. H.M. Krishna Prasad This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-2195588/v2 This work is licensed under a CC BY 4.0 License Status: Posted Version 2 posted You are reading this latest preprint version Show more versions Abstract Automated Short Answer Grading (ASAG) is one of the most stud-ied applications of NLP in the education domain. Most of the work in this area focuses on natural language responses. The main contribution of this work is the building and benchmarking of the Short Program-ming Related Answer Grading dataset. The corpus contains questions and answers taken from python programming subjects involving symbols, keywords, and no grammar. We propose data collection, preprocessing, and annotating methods that enable the creation of the corpus. This paper also provides an initial analysis of the corpus. A range of pre-trained sentence-transformer models are evaluated on the dataset for both binary and multi-class classification. Our best fine-tuned model yields an accuracy of 86.16% on binary classification and 56.11% on multiclass classification. We find that fine-tuning the pre-trained models results in the best performance for binary classification. The dataset is freely available to the public. ASAG Corpus Autograding Programming NLP BERT Full Text Additional Declarations The authors declare no competing interests. Cite Share Download PDF Status: Posted Version 2 posted You are reading this latest preprint version Show more versions Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-2195588","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":263701703,"identity":"9c4cc324-b608-4ec2-a1cc-b34bb051503c","order_by":0,"name":"Sridevi Bonthu","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA4UlEQVRIiWNgGAWjYFACxgYJBgYgusF8AMiTkCFFC1sCSAsPUfZIgMkbPAYgirAW+dmHG298bLNg4Lvd8/nVjRoLHgb2w0c34NNicC6x2XJmmwSD5J2z26xzjgEdxpOWdgOvFh7GNmmeMxIMBjdytxnnsAG1SPCY4dUi3wPU8gesJeeZcc4/IrQwnAFqYagAa2F+nNtGhBaDM4zNlj0VEjySd46ZMef2SfCwEfKLfA/7wxs/DOrk+G43P/6c861Ojp/98DH8DoMCUHSwgSOIjRjlMMD8gRTVo2AUjIJRMHIAAI+yREeXp8VaAAAAAElFTkSuQmCC","orcid":"","institution":"Vishnu Institute of Technology","correspondingAuthor":true,"prefix":"","firstName":"Sridevi","middleName":"","lastName":"Bonthu","suffix":""},{"id":263701704,"identity":"988c5a14-754f-45e2-a636-ebfc1284f0b5","order_by":1,"name":"S Rama Sree","email":"","orcid":"","institution":"Aditya Engineering College","correspondingAuthor":false,"prefix":"","firstName":"S","middleName":"Rama","lastName":"Sree","suffix":""},{"id":263701705,"identity":"121e7dba-d622-4f03-8d31-26e05f31edeb","order_by":2,"name":"M. H.M. Krishna Prasad","email":"","orcid":"","institution":"Jawaharlal Nehru Technological University","correspondingAuthor":false,"prefix":"","firstName":"M.","middleName":"H.M. Krishna","lastName":"Prasad","suffix":""}],"badges":[],"createdAt":"2022-10-23 11:59:15","currentVersionCode":2,"declarations":{"humanSubjects":false,"vertebrateSubjects":false,"conflictsOfInterestStatement":false,"humanSubjectEthicalGuidelines":false,"humanSubjectConsent":false,"humanSubjectClinicalTrial":false,"humanSubjectCaseReport":false,"vertebrateSubjectEthicalGuidelines":false},"doi":"10.21203/rs.3.rs-2195588/v2","doiUrl":"https://doi.org/10.21203/rs.3.rs-2195588/v2","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":51567170,"identity":"968f8166-9d8a-425f-bffa-fe6b555780a2","added_by":"auto","created_at":"2024-02-23 19:40:34","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":425329,"visible":true,"origin":"","legend":"","description":"","filename":"spragAI.pdf","url":"https://assets-eu.researchsquare.com/files/rs-2195588/v2_covered_642cdbd5-e539-424d-948a-a2c4a9ee44f5.pdf"}],"financialInterests":"The authors declare no competing interests.","formattedTitle":"\u003cp\u003eSPRAG: a Short Programming Related Answer Grading Dataset\u003c/p\u003e","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"ASAG Corpus, Autograding, Programming, NLP, BERT","lastPublishedDoi":"10.21203/rs.3.rs-2195588/v2","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-2195588/v2","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eAutomated Short Answer Grading (ASAG) is one of the most stud-ied applications of NLP in the education domain. Most of the work in this area focuses on natural language responses. The main contribution of this work is the building and benchmarking of the Short Program-ming Related Answer Grading dataset. The corpus contains questions and answers taken from python programming subjects involving symbols, keywords, and no grammar. We propose data collection, preprocessing, and annotating methods that enable the creation of the corpus. This paper also provides an initial analysis of the corpus. A range of pre-trained sentence-transformer models are evaluated on the dataset for both binary and multi-class classification. Our best fine-tuned model yields an accuracy of 86.16% on binary classification and 56.11% on multiclass classification. We find that fine-tuning the pre-trained models results in the best performance for binary classification. The dataset is freely available to the public.\u003c/p\u003e","manuscriptTitle":"SPRAG: a Short Programming Related Answer Grading Dataset","msid":"","msnumber":"","nonDraftVersions":[{"code":2,"date":"2024-02-23 19:24:25","doi":"10.21203/rs.3.rs-2195588/v2","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}},{"code":1,"date":"2022-11-29 04:02:06","doi":"10.21203/rs.3.rs-2195588/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"17f6dbec-5169-43d1-8150-d2559deb6e7c","owner":[],"postedDate":"February 23rd, 2024","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2022-11-29T04:59:14+00:00","versionOfRecord":[],"versionCreatedAt":"2024-02-23 19:24:25","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v2","identity":"rs-2195588","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-2195588","identity":"rs-2195588","version":["v2"]},"buildId":"qtupq5eGEP_6zYnWcrvyt","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.