首页 | 本学科首页   官方微博 | 高级检索  
     


Semantic clustering: Identifying topics in source code
Affiliation:1. Software Composition Group, University of Berne, Switzerland;2. Language and Software Evolution Group, LISTIC, Université de Savoie, France;1. Department of Informatics, University of Minho, Campus de Gualtar, 4710-057 Braga, Portugal;2. Polytechnic Institute of Bragança, Campus de Santa Apolónia, 5300-253 Bragança, Portugal;1. Japan Advanced Institute of Information Technology, Ishikawa, Japan;2. Le Quy Don Technical University, 236 Hoang Quoc Viet Rd., Ha Noi, Viet Nam;1. Institute of Automation, Chinese Academy of Sciences (CAS), Beijing, PR China;2. National Laboratory of Pattern Recognition (NLPR), Beijing, PR China;3. Center for Excellence in Brain Science and Intelligence Technology, CAS, PR China
Abstract:Many of the existing approaches in Software Comprehension focus on program structure or external documentation. However, by analyzing formal information the informal semantics contained in the vocabulary of source code are overlooked. To understand software as a whole, we need to enrich software analysis with the developer knowledge hidden in the code naming. This paper proposes the use of information retrieval to exploit linguistic information found in source code, such as identifier names and comments. We introduce Semantic Clustering, a technique based on Latent Semantic Indexing and clustering to group source artifacts that use similar vocabulary. We call these groups semantic clusters and we interpret them as linguistic topics that reveal the intention of the code. We compare the topics to each other, identify links between them, provide automatically retrieved labels, and use a visualization to illustrate how they are distributed over the system. Our approach is language independent as it works at the level of identifier names. To validate our approach we applied it on several case studies, two of which we present in this paper.Note: Some of the visualizations presented make heavy use of colors. Please obtain a color copy of the article for better understanding.
Keywords:
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号