论文标题

在源代码搜索中生成澄清问题以进行查询细化

Generating Clarifying Questions for Query Refinement in Source Code Search

论文作者

Eberhart, Zachary, McMillan, Collin

论文摘要

在源代码搜索中,一种常见的信息寻求策略涉及提供具有广泛含义的简短初始查询,然后使用从后续搜索的结果中收集的术语迭代地完善查询。该策略要求程序员花时间阅读与他们的开发需求无关的搜索结果。相反,当程序员从其他人中寻求信息时,他们通常会通过询问和回答澄清问题来完善查询。澄清的问题已被证明使通用搜索引擎受益,但在代码搜索的背景下没有进行检查。我们提出了一种使用从功能名称和注释中提取的信息生成自然澄清问题的方法。我们的方法表现优于基于关键的合成研究中单转化的方法,并且与人类研究中较短的搜索持续时间有关。

In source code search, a common information-seeking strategy involves providing a short initial query with a broad meaning, and then iteratively refining the query using terms gleaned from the results of subsequent searches. This strategy requires programmers to spend time reading search results that are irrelevant to their development needs. In contrast, when programmers seek information from other humans, they typically refine queries by asking and answering clarifying questions. Clarifying questions have been shown to benefit general-purpose search engines, but have not been examined in the context of code search. We present a method for generating natural-sounding clarifying questions using information extracted from function names and comments. Our method outperformed a keyword-based method for single-turn refinement in synthetic studies, and was associated with shorter search duration in human studies.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源