Unlock instant, AI-driven research and patent intelligence for your innovation.

Structured query statement generation method and device, electronic equipment and medium

A structured query and statement technology, applied in the database field, can solve the problems of low generation accuracy, irreparable, and low acquisition efficiency, and achieve the effects of reducing labor costs, saving time, and improving accuracy

Pending Publication Date: 2020-07-28
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the method of the seq2seq model, a large number of training samples are required. However, such training samples are not only difficult to obtain, but also the acquisition efficiency is low, which leads to a lot of labor costs on the training samples. In addition, when the generated structured query statement is not accurate When , the seq2seq model cannot fix the corresponding errors, making the generation accuracy low; while in the rule-based method, it cannot cover all the user's sentence habits, so the user is required to input sentences according to certain rule templates, Bad for user experience, moreover, rule-based recall is low

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
  • Structured query statement generation method and device, electronic equipment and medium
  • Structured query statement generation method and device, electronic equipment and medium
  • Structured query statement generation method and device, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0076] Such as figure 1 Shown is a flowchart of a preferred embodiment of the method for generating structured query statements of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0077] The method for generating structured query statements is applied to one or more electronic devices, and the electronic device is a device that can automatically perform numerical calculation and / or information processing according to preset or stored instructions, and its hardware includes But not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Ar...

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 provides a structured query statement generation method and device, electronic equipment and a medium. The structured query statement generation method comprises the following steps: when a query request is received, extracting a statement from the query request, performing word segmentation processing on the statement, obtaining segmented words, generating a target list according tothe segmented words and a configured dictionary, wherein the dictionary represents a corresponding relationship between segmented words and segmented word types, the target list represents a corresponding relationship between target segmented words and target segmented word types; identifying the target segmented words in the target list as label values; generating a target syntax tree accordingto the label value and a pre-configured syntax tree framework, wherein the syntax tree framework represents a label, the target syntax tree represents a corresponding relationship between the label and a label value; obtaining a structured query statement template corresponding to the label based on the target syntax tree; and inputting the label value into the structured query statement templateto obtain a structured query statement corresponding to the statement.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method, device, electronic equipment and medium for generating structured query statements. Background technique [0002] In order to facilitate data query, data is generally stored in the database in the form of a data table. For those who do not have the foundation of structured query language, it is impossible to organize structured query statements, and then the data results cannot be queried in the database. Quickly get data results, therefore, the method of converting natural sentences into SQL statements came into being. [0003] However, in the existing SQL statement conversion methods, they are mainly divided into seq2seq model methods and rule-based methods. In the method of the seq2seq model, a large number of training samples are required. However, such training samples are not only difficult to obtain, but also the acquisition efficiency is low, which leads to a...

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): G06F16/242G06F16/2452G06F40/289
CPCG06F16/243G06F16/24522
Inventor 赵亮
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN