Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Program code annotation generation method and system, electronic equipment and storage medium

A program code and code technology, which is applied in the field of electronic equipment and a storage medium, and the generation of program code comments, can solve the problems of consuming a lot of energy to understand the code, unable to generate code comments, etc., and achieve the effect of improving efficiency

Inactive Publication Date: 2020-05-22
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the rapid development of the IT industry, the code volume of developers in the process of developing programs is gradually increasing. Many programmers are unwilling to add comments during development, which leads to the subsequent development or maintenance personnel spending a lot of time on understanding the code. great energy
[0003] At present, there is no specific technical solution to complete the generation of program code comments. In related technologies, method refactoring (method refactoring) is used to quickly understand the code. This method is expressed in another way through method calls, but this method also fails to generate comments for the entire code

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Program code annotation generation method and system, electronic equipment and storage medium
  • Program code annotation generation method and system, electronic equipment and storage medium
  • Program code annotation generation method and system, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0042] see below figure 1 , figure 1 It is a flow chart of a method for generating program code comments provided by the embodiment of the present application.

[0043] Specific steps can include:

[0044] S101: Extract code feature information of the target code;

[0045] Wherein, the target code mentioned in this embodiment can be the program co...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a program code annotation generation method. The generation method comprises the steps of extracting code feature information of a target code; wherein the code feature information comprises a code keyword, a code method, a code action and an action parameter; generating natural language information corresponding to the target code according to the code feature information;and generating an annotation text corresponding to the natural language information, and outputting the target code including the annotation text. The annotation of the program code can be automatically generated, and the code annotation efficiency is improved. The invention furthermore discloses a program code annotation generation system, electronic equipment and a storage medium, which have the above beneficial effects.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and system for generating program code annotations, an electronic device, and a storage medium. Background technique [0002] With the rapid development of the IT industry, the code volume of developers in the process of developing programs is gradually increasing. Many programmers are unwilling to add comments during development, which leads to the subsequent development or maintenance personnel spending a lot of time on understanding the code. Great energy. [0003] At present, there is no specific technical solution to complete the generation of program code comments. In related technologies, method refactoring (method refactoring) is used to quickly understand the code. This method is expressed in another way through method calls, but this Methods also cannot generate comments for the entire code. [0004] Therefore, how to automatically generate progra...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/73
CPCG06F8/73
Inventor 边智慧
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products