System and method for automatically generating answers to programming specification questions

A technology for automatic generation and natural language problems, applied in the field of artificial intelligence semantic recognition, can solve problems such as insufficient use of knowledge in the field of programming specifications, inaccurate understanding of user intentions, etc., and achieve the effect of improving accuracy

Pending Publication Date: 2021-02-05
SHANGHAI JIAO TONG UNIV
View PDF13 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention aims at defects such as insufficient utilization of knowledge in the field of programming specification of the existing question-and-answer robot system, inaccurate understanding of user intentions, etc., and proposes a system and method for automatically generating answers to programming specification questions, and by combining knowledge graphs and machine reading comprehension techniques, fully Leverage programming specification domain knowledge to more precisely understand user intent, thereby improving the accuracy of automatically generating answers to programming specification questions

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
  • System and method for automatically generating answers to programming specification questions
  • System and method for automatically generating answers to programming specification questions
  • System and method for automatically generating answers to programming specification questions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] like figure 1 As shown, it involves a system for automatically generating answers to programming specification questions, including: a subgraph matching module, a machine reading comprehension module, and a learning ranking module.

[0026] The subgraph matching module collects natural language questions and converts them into sentences conforming to the SPARQL (SPARQL Protocoland RDF Query Language) protocol, and uses the structured information query in the programming specification knowledge map to obtain candidate answers.

[0027] The machine reading comprehension module uses a deep learning model to learn unstructured text predictions to obtain candidate answers

[0028] The learning sorting module combines the candidate answers obtained by the subgraph matching module and the machine reading comprehension module, and uses a logistic regression classifier to sort the candidate answers according to the correct probability.

[0029] like image 3 As shown, this emb...

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 system and a method for automatically generating answers to programming specification questions. The system comprises a subgraph matching module, a machine reading understanding module and a learning sorting module. The method comprises steps of a programming specification knowledge graph being constructed, and natural language questions being converted into statements conforming to an SPARQL protocol through the subgraph matching module; and querying to obtain candidate answers by using the structured information in the programming specification knowledge graph; selecting all nouns, nouns phrases and subjects from the natural language questions through a machine reading understanding module, marking the words as keywords, using an Apache Solr engine to search toobtain ten most relevant natural segments, using an algorithm based on TF-IDF to score the searched natural segments, and using a TF-IDF algorithm to obtain the most relevant natural segments; using the trained deep learning model for each natural segment to obtain candidate answers, combining the candidate answers through a learning sorting module to generate new candidate answers, and using a logistic regression classifier to sort the new candidate answers according to correct probabilities.

Description

technical field [0001] The invention relates to a technology in the field of artificial intelligence semantic recognition, in particular to a system and method for automatically generating answers to programming specification questions. Background technique [0002] In recent years, programming norms have played an increasingly important role in software quality assurance. Programming specifications are a series of code guidelines that help software developers improve code readability, maintainability, and reusability. When software developers encounter problems related to programming specifications, they can query programming specification documents. However, a programming specification may appear in multiple programming specification documents, and the content of each programming specification document may be different. Therefore, software developers need to query or browse multiple documents to obtain desired information, which is very cumbersome. The question-answerin...

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): G06F16/36G06F8/33G06F16/332
CPCG06F16/367G06F16/3329G06F8/33
Inventor 吴秦月杜天蛟曹峻铭李威沈备军陈雨亭
Owner SHANGHAI JIAO TONG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products