arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.08365cs.CLcs.SE
收藏

CodeQA:面向Source Code理解的问答数据集

CodeQA: A Question Answering Dataset for Source Code Comprehension

Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);The MOE Key Laboratory of Computational Linguistics, Peking University(北京大学教育部计算语言学重点实验室)

Chenxiao Liu, Xiaojun Wan

摘要:

我们提出了CodeQA,一个自由形式的问答数据集的源代码理解的目的:给定一个代码片段和一个问题,需要生成一个文本答案。CodeQA包含一个包含119,778个问答对的Java数据集和一个包含70,085个问答对的Python数据集。为了获得自然和忠实的问题和答案,我们实现了语法规则和语义分析,将代码注释转换为问答对。我们介绍了构建过程,并对我们的数据集进行了系统的分析。我们的数据集上的几个神经基线实现的实验结果显示和讨论。在问答和机器阅读理解研究发展迅速的同时,很少有人关注代码问答。这个新的数据集可以作为源代码理解的有用研究基准。

英文摘要:

We propose CodeQA, a free-form question answering dataset for the purpose of source code comprehension: given a code snippet and a question, a textual answer is required to be generated. CodeQA contains a Java dataset with 119,778 question-answer pairs and a Python dataset with 70,085 question-answer pairs. To obtain natural and faithful questions and answers, we implement syntactic rules and semantic analysis to transform code comments into question-answer pairs. We present the construction process and conduct systematic analysis of our dataset. Experiment results achieved by several neural baselines on our dataset are shown and discussed. While research on question-answering and machine reading comprehension develops rapidly, few prior work has drawn attention to code question answering. This new dataset can serve as a useful research benchmark for source code comprehension.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑