Query Expansion via Wordnet for Effective Code Search

被引:0
|
作者
Lu, Meili [1 ]
Sun, Xiaobing [1 ,4 ]
Wang, Shaowei [2 ]
Lo, David [2 ]
Duan, Yucong [3 ]
机构
[1] Yangzhou Univ, Sch Informat Engn, Yangzhou, Jiangsu, Peoples R China
[2] Singapore Management Univ, Sch Informat Syst, Singapore, Singapore
[3] Hainan Univ, Sch Informat Sci & Technol, Haikou, Peoples R China
[4] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Jiangsu, Peoples R China
来源
2015 22ND INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER) | 2015年
关键词
SIMILARITY; SOFTWARE; CONTEXT;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Source code search plays an important role in software maintenance. The effectiveness of source code search not only relies on the search technique, but also on the quality of the query. In practice, software systems are large, thus it is difficult for a developer to format an accurate query to express what really in her/his mind, especially when the maintainer and the original developer are not the same person. When a query performs poorly, it has to be reformulated. But the words used in a query may be different from those that have similar semantics in the source code, i.e., the synonyms, which will affect the accuracy of code search results. To address this issue, we propose an approach that extends a query with synonyms generated from WordNet. Our approach extracts natural language phrases from source code identifiers, matches expanded queries with these phrases, and sorts the search results. It allows developers to explore word usage in a piece of software, helps them quickly identify relevant program elements for investigation or quickly recognize alternative words for query reformulation. Our initial empirical study on search tasks performed on the JavaScript/ECMAScript interpreter and compiler, Rhino, shows that the synonyms used to expand the queries help recommend good alternative queries. Our approach also improves the precision and recall of Conquer, a state-of-the-art query expansion/reformulation technique, by 5% and 8% respectively.
引用
收藏
页码:545 / 549
页数:5
相关论文
共 50 条
  • [1] Neural Query Expansion for Code Search
    Liu, Jason
    Kim, Seohyun
    Murali, Vijayaraghavan
    Chaudhuri, Swarat
    Chandra, Satish
    PROCEEDINGS OF THE 3RD ACM SIGPLAN INTERNATIONAL WORKSHOP ON MACHINE LEARNING AND PROGRAMMING LANGUAGES (MAPL '19), 2019, : 29 - 37
  • [2] Web query expansion by WordNet
    Gong, ZG
    Cheang, CW
    Hou, UL
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2005, 3588 : 166 - 175
  • [3] Effective Query Expansion for Federated Search
    Shokouhi, Milad
    Azzopardi, Leif
    Thomas, Paul
    PROCEEDINGS 32ND ANNUAL INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL, 2009, : 427 - 434
  • [4] Improving Query Expansion Using WordNet
    Pal, Dipasree
    Mitra, Mandar
    Datta, Kalyankumar
    JOURNAL OF THE ASSOCIATION FOR INFORMATION SCIENCE AND TECHNOLOGY, 2014, 65 (12) : 2469 - 2478
  • [5] Using WordNet in Conceptual Query Expansion
    Zhang, Jiuling
    Shi, Chuan
    Deng, Beixing
    Li, Xing
    ADVANCES IN SOFTWARE ENGINEERING, 2009, 30 : 210 - 218
  • [6] Efficient and Effective Query Expansion for Web Search
    Lucchese, Claudio
    Nardini, Franco Maria
    Perego, Raffaele
    Trani, Roberto
    Venturini, Rossano
    CIKM'18: PROCEEDINGS OF THE 27TH ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, 2018, : 1551 - 1554
  • [7] Query Expansion Based on Crowd Knowledge for Code Search
    Nie, Liming
    Jiang, He
    Ren, Zhilei
    Sun, Zeyi
    Li, Xiaochen
    IEEE TRANSACTIONS ON SERVICES COMPUTING, 2016, 9 (05) : 771 - 783
  • [8] Concept Based Query Expansion Using WordNet
    Zhang, Jiuling
    Deng, Beixing
    Li, Xing
    AST: 2009 INTERNATIONAL E-CONFERENCE ON ADVANCED SCIENCE AND TECHNOLOGY, PROCEEDINGS, 2009, : 52 - 55
  • [9] Query expansion with ConceptNet and WordNet: An intrinsic comparison
    Hsu, Ming-Hung
    Tsai, Ming-Feng
    Chen, Hsin-Hsi
    INFORMATION RETRIEVAL TECHNOLOGY, PROCEEDINGS, 2006, 4182 : 1 - 13
  • [10] Rare Query Expansion via Wikipedia for Sponsored Search
    Xu, Zhuoran
    Wang, Xiangzhi
    Yu, Yong
    KNOWLEDGE ENGINEERING AND MANAGEMENT, 2011, 123 : 521 - 530