...
首页> 外文期刊>Automated software engineering >Enhance code search via reformulating queries with evolving contexts
【24h】

Enhance code search via reformulating queries with evolving contexts

机译:通过使用不断变化的上下文重新构造查询来增强代码搜索

获取原文
获取原文并翻译 | 示例
           

摘要

To improve code search, many query expansion (QE) approaches use APIs or crowd knowledge for expanding a query. However, these approaches may sometimes negatively impact the retrieval performance. This is because they can't distinguish the relevant terms from the irrelevant ones among a large set of candidate expansion terms and expand a query with irrelevant terms. In this paper, we propose QREC, a query reformulation approach with evolving contexts that refer to new/deleted terms and dependent terms during the code evolution. By considering the new terms as the relevant and the deleted terms as the irrelevant, QREC could reformulate a query with appropriate expansion terms. The experimental results show that QREC outperforms the state-of-the-art QE approaches (e.g., CodeHow and QECK) by 9-11% and improves the precision of the code search algorithms IR, Portfolio and VF by up to 37-45%.
机译:为了改善代码搜索,许多查询扩展(QE)方法使用API​​或众包知识来扩展查询。但是,这些方法有时可能会对检索性能产生负面影响。这是因为它们无法在大量候选扩展术语中将相关术语与不相关的术语区分开,并且无法使用不相关的术语来扩展查询。在本文中,我们提出了QREC,这是一种具有上下文发展关系的查询重构方法,在代码演化过程中会引用新的/已删除的术语和从属术语。通过将新术语视为相关术语并将删除的术语视为不相关术语,QREC可以使用适当的扩展术语重新构造查询。实验结果表明,QREC的性能比最新的QE方法(例如CodeHow和QECK)高9-11%,并将代码搜索算法IR,Portfolio和VF的精度提高了37-45%。 。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号