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

Method and system for automatic generation of source code comments

An automatic generation and source code technology, applied in code compilation, program code conversion, neural learning methods, etc., can solve problems such as understanding errors, information loss, error information expansion, etc., and achieve the effect of reducing workload

Active Publication Date: 2022-02-11
CHINA STANDARD SOFTWARE
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Outdated, incorrect, or missing program source code comments that can lead to misinterpretation by other programmers on the team
The situation may deteriorate further, for example, it is difficult to build an experimental environment for computer programs, and without an experimental environment, it is impossible to understand the internal working principles of computer programs by monitoring and analyzing the internal operating procedures and internal processing mechanisms of computer programs
Therefore, individuals in the team will have understanding errors, and at the same time, information will be lost in the dissemination of information among team members, and error information will continue to expand, resulting in continuous difficulties in software development and management.

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
  • Method and system for automatic generation of source code comments
  • Method and system for automatic generation of source code comments
  • Method and system for automatic generation of source code comments

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] The technical solutions of the present invention and the beneficial effects thereof will be described in detail below in connection with the accompanying drawings.

[0061] The traditional programming language is lexical, and the grammatical process forms an abstract syntax tree. The program source code annotation is the natural language used by the programmer to describe the internal operation mechanism used. Based on the existing source code analysis system, it is not possible to process the program. The problem with sufficiently high information, the present invention provides the source code annotation method and system based on recursive neural network and abstract syntax tree, by processing recursive neural networks in natural language to obtain annotations of program source code, so that the recursive neural network It is possible to handle problems associated with the inputs between those inputs. Since the interconnection between the words and words in the natural l...

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 present invention relates to a method and system for automatically generating source code annotations. By performing semantic analysis on the first source code and generating an abstract syntax tree, an internal mapping relationship between natural language and programming language is established, and then the second source code is generated using the mapping relationship. As a note, the invention enables the computer to efficiently analyze the program language and then map it to the corresponding natural language, so that the programmer can efficiently and easily understand the functions implemented by the source code. Help programmers quickly understand the internal operating mechanism of computer programs, thereby helping programmers quickly identify defects and loopholes in software design. The invention has universality, solves the existing workload problem of manually analyzing repetitive source codes, and reduces time and cost expenditures caused by analyzing repetitive source codes.

Description

Technical field [0001] The present invention relates to a software source code analysis tool, and more particularly to a source code annotation automatic generation method and system based on a recursive neural network and an abstract syntax tree. Background technique [0002] Artificial intelligence has become a worldwide hot topic, where deep learning alphago defeated Li Shi Shi. The artificial intelligence algorithm is constantly applying in various industries. A large amount of data accumulated in the late industrial age in the industrial age makes the random probability model clearer and more enabling objective law. Therefore, reasonable use probability theoretical analysis can more accurately obtain industry laws. Probability Theory is one of the cornerstone of artificial intelligence, and it can be attracted to all industries. [0003] Existing source analysis tools can help programmers quickly analyze the data structure of the program source code, execute the process of t...

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 Patents(China)
IPC IPC(8): G06F8/41G06N3/06G06N3/08
Inventor 劳生刘艳彬吴春光罗飞范凡申利飞
Owner CHINA STANDARD SOFTWARE
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