中国科学技术大学学报 ›› 2017, Vol. 47 ›› Issue (1): 80-86.DOI: 10.3969/j.issn.0253-2778.2017.01.011
• 原创论文 • 上一篇
孙伟松
SUN Weisong
摘要: 在对已有程序代码进行理解或者维护时,开发人员通常需要使用代码搜索技术搜寻感兴趣的代码,但有时候不知道该软件系统过去的开发者和维护者在软件开发和维护过程中定义了哪些元素以及这些元素之间存在着什么关系,因此就很难搜索到想要的代码来进行维护.针对以上问题,提出一个针对具体软件历史版本库的词库自动构建方法,基于该方法建立的词库可以有效地帮助开发人员进行系统的理解和维护.另外,给出了针对历史代码库进行词库建立的工具WB4HPR.WB4HPR可以为开发人员检索出他们想要了解的词语、词语之间的关系以及它们在历史库中的演化情况.基于WB4HPR,开发人员可以方便地理解软件系统在过去版本中使用的单词或词组以及使用单词之间存在的关系,能够有效地保证软件代码中词语前后使用的一致性.