错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Grading Documentation with Machine Learning

  • Marcus Messer,
  • Miaojing Shi,
  • Neil C. C. Brown,
  • Michael Kölling

摘要

Professional developers, and especially students learning to program, often write poor documentation. While automated assessment for programming is becoming more common in educational settings, often using unit tests for code functionality and static analysis for code quality, documentation assessment is typically limited to detecting the presence and the correct formatting of a docstring based on a specified style guide. We aim to investigate how machine learning can be utilised to aid in automating the assessment of documentation quality. We classify a large set of publicly available human-annotated relevance scores between a natural language string and a code string, using traditional approaches, such as Logistic Regression and Random Forest, fine-tuned large language models, such as BERT, and Low-Rank Adaptation of large language models. Our most accurate model was a k-nearest-neighbours model with an accuracy of 58%.