计算机科学 > 软件工程
[提交于 2018年10月15日]
标题:Generating Comments From Source Code with CCGs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Good comments help developers understand software faster and provide better maintenance. However, comments are often missing, generally inaccurate, or out of date. Many of these problems can be avoided by automatic comment generation. This paper presents a method to generate informative comments directly from the source code using general-purpose techniques from natural language processing. We generate comments using an existing natural language model that couples words with their individual logical meaning and grammar rules, allowing comment generation to proceed by search from declarative descriptions of program text. We evaluate our algorithm on several classic algorithms implemented in Python.
提交历史
来自:Colin Gordon[v1] 2018年10月15日 星期一 18:25:25 UTC