Supercharge Your Innovation With Domain-Expert AI Agents!

Text-to-SQL model optimization method and system

An optimization method and text technology, applied in neural learning methods, biological neural network models, unstructured text data retrieval, etc., can solve the problems of fully connected graphs only considering global relationships, ignoring the emphasis of local relationships, and ignoring connection information , to achieve the effect of improving coding ability, enriching semantic features, and improving performance

Pending Publication Date: 2021-07-27
AISPEECH CO LTD
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] In order to at least solve the problems in the prior art, these methods ignore the connection information between the edges in the directed graph, either only consider the local relationship, or use a fully connected graph to only consider the global relationship, ignoring the local relationship. stressed issue

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
  • Text-to-SQL model optimization method and system
  • Text-to-SQL model optimization method and system
  • Text-to-SQL model optimization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0039] Such as figure 1 Shown is a flowchart of an optimization method for a text-to-SQL model provided by an embodiment of the present invention, including the following steps:

[0040] S11: Input the relationship features determined from the heterogeneous graph of the text and the line graph corresponding to the heterogeneous graph to the hidde...

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 embodiment of the invention provides a text-to-SQL model optimization method. The method comprises the following steps: inputting relation characteristics determined from a heterogeneous graph of a text and a line graph corresponding to the heterogeneous graph into a hidden layer; in the hidden layer, iteratively updating node features and edge features through two relational graph attention networks, and inputting the iteratively updated node features to an output layer; and determining the corresponding SQL in the output layer. The embodiment of the invention further provides a text-to-SQL model optimization system. According to the embodiment of the invention, in the encoding task of the heterogeneous graph, the encoding capability of the heterogeneous graph is further improved by introducing the line graph structure of the heterogeneous graph, enriching the semantic features and modeling the topological structure between the edges, and meanwhile, bidirectional modeling is performed on the nodes and the edges, so that the performance is improved in the face of complex connection conditions.

Description

technical field [0001] The invention relates to the field of intelligent speech, in particular to a method and system for optimizing a text-to-SQL model. Background technique [0002] The text-to-SQL task aims to convert natural language questions into corresponding SQL query statements given the corresponding database schema. [0003] In order to implement text-to-SQL tasks, text-to-SQL models such as SQLNet, TypeSQL, GNNSQL, EditSQL, and RATSQL are usually used. [0004] These models are all designed to jointly encode the input natural language text and database schema, and then convert it into the target output SQL program in an end-to-end manner. The database schema includes the name of each data table in the database, the name of each column in the table, the set of primary keys of the data table, and the foreign key connection information between the data tables. The tables and columns in the database are collectively referred to as schema items, and they can form 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/36G06F16/242G06F40/151G06F40/211G06F40/284G06F40/30G06N3/04G06N3/08
CPCG06F16/367G06F16/2433G06F40/151G06F40/211G06F40/30G06F40/284G06N3/08G06N3/044Y02D10/00
Inventor 俞凯曹瑞升陈露
Owner AISPEECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More