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

Automatic program correction method based on knowledge graph

A knowledge map and program technology, applied in the field of program automatic correction, can solve problems such as troublesome, low efficiency, and complicated writing

Active Publication Date: 2021-03-12
ZHEJIANG SCI-TECH UNIV
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, there are already existing methods for generating required program fragments through natural language processing. However, these methods require large-scale computing support of neural networks, and there is no unified standard. The logical structure, construction methods, and automated practical applications of code knowledge graphs are not It has not been solved well, and it cannot provide a complete programming method. Programmers need to be very rigorous when writing programs, and there must be no gaps or mistakes. Correction, programming is complicated, cumbersome, inefficient, and labor-intensive
[0003] Therefore, the existing program processing has the problems of complex writing, low efficiency, and large amount of manual labor.

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
  • Automatic program correction method based on knowledge graph
  • Automatic program correction method based on knowledge graph
  • Automatic program correction method based on knowledge graph

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The present invention will be further described below in conjunction with the examples, but not as a basis for limiting the present invention.

[0056] Example.

[0057] A method for automatically correcting programs based on knowledge graphs, such as figure 1 As shown, it specifically includes the following steps:

[0058] S1. Obtain the open source code on the network, analyze the acquired source code through the code knowledge graph construction program, and generate the code knowledge graph;

[0059] S2. Write a skeleton program that allows missing or errors;

[0060] S3. Analyze the skeleton program through the code completion program, use the code knowledge graph to correct and supplement the skeleton program, and obtain a complete program that is normally executed.

[0061] In the S1., the code knowledge graph is an RDF triple structure. The RDF triple structure consists of code entities and code relations. Code entities are all grammatical components of a p...

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 an automatic program correction method based on a knowledge graph, and the method comprises the following steps: S1, obtaining an open source code on a network, carrying out the analysis of the obtained source code through a code knowledge graph construction program, and generating a code knowledge graph; s2, writing a skeleton program which allows missing or errors to occur; and S3, analyzing the skeleton program through a code completion program, and correcting and supplementing the skeleton program by utilizing the code knowledge graph to obtain a normally executed complete program. According to the invention, a defective skeleton program can be automatically trimmed to obtain a complete program, and the method has the characteristics of simplifying programming,improving programming efficiency and reducing manual labor amount.

Description

technical field [0001] The present invention relates to a method for automatically correcting programs, in particular to a method for automatically correcting programs based on knowledge graphs. Background technique [0002] At present, the automation development technology of program design is changing from the original componentized and model-driven method to the deep learning-based and semantic-driven method. At present, there are already existing methods for generating required program fragments through natural language processing. However, these methods require large-scale computing support of neural networks, and there is no unified standard. The logical structure, construction methods, and automated practical applications of code knowledge graphs are not It has not been solved well, and it cannot provide a complete programming method. Programmers need to be very rigorous when writing programs, and there must be no gaps or mistakes. Amendment, programming is complex, ...

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
IPC IPC(8): G06F8/72G06F16/36G06F8/41G06F8/30
CPCG06F8/72G06F16/367G06F8/42G06F8/315
Inventor 陈海波韩咏男田丰喻
Owner ZHEJIANG SCI-TECH UNIV
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