首页> 外文会议>International Conference on Software Maintenance and Evolution >Using stereotypes in the automatic generation of natural language summaries for C++ methods
【24h】

Using stereotypes in the automatic generation of natural language summaries for C++ methods

机译:在自动生成C ++方法的自然语言摘要中使用构造型

获取原文

摘要

An approach to automatically generate natural language documentation summaries for C++ methods is presented. The approach uses prior work by the authors on stereotyping methods along with the source code analysis framework srcML. First, each method is automatically assigned a stereotype(s) based on static analysis and a set of heuristics. Then, the approach uses the stereotype information, static analysis, and predefined templates to generate a natural-language summary for each method. This summary is automatically added to the code base as a comment for each method. The predefined templates are designed to produce a generic summary for specific method stereotypes. Static analysis is used to extract internal details about the method (e.g., parameters, local variables, calls, etc.). This information is used to specialize the generated summaries.
机译:提出了一种自动为C ++方法生成自然语言文档摘要的方法。该方法使用了作者先前关于定型方法的工作以及源代码分析框架srcML。首先,根据静态分析和一组启发式方法,自动为每个方法分配一个构造型。然后,该方法使用构造型信息,静态分析和预定义模板为每种方法生成自然语言摘要。该摘要将自动添加到代码库中,作为每个方法的注释。预定义的模板旨在为特定的方法构造型生成通用摘要。静态分析用于提取有关方法的内部详细信息(例如,参数,局部变量,调用等)。此信息用于专用于生成的摘要。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号