A data query method and system supporting a natural language

A natural language and data query technology, applied in the field of data query, can solve the problems of slow model iteration optimization, uncontrollable check and correction operations of expression logic and content, and low translation accuracy.

Inactive Publication Date: 2019-05-17
上海汇付支付有限公司
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the problems of low translation accuracy, slow model iterative optimization speed, and uncontrollable inspection and correction of the expression logic and content of translated sentences in related technologies, the present invention proposes a data query method and system supporting natural language , can solve the above technical problems

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
  • A data query method and system supporting a natural language
  • A data query method and system supporting a natural language
  • A data query method and system supporting a natural language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention belong to the protection scope of the present invention.

[0049] see figure 1 According to an embodiment of the present invention, a data query method supporting natural language is provided, including:

[0050] S101: Receive user's natural language query statement;

[0051] S102: Based on the translation model, establish the translation of the natural language query statement into a target standard Structured Query Language (Structured Query Language, hereinafter referred to as SQL) statement;

[0052] S103: Determine whether the target standard ...

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 data query method supporting a natural language. The method comprises the following steps of receiving a natural language query statement of a user; establishing a natural language query statement based on the translation model, and translating and converting the natural language query statement into a target standard SQL statement; judging whether a target standard SQL statement can be obtained or not; if yes, outputting a data query result based on the target standard SQL statement; and if not, prompting the user to re-input other natural language query statements,and carrying out model training optimization on the translation model. By firstly decoding and translating natural language query statements into SQL statements, correctly marking the natural languagequery statements which cannot be translated and predicted by a translation model or have wrong translation, amplifying a model training sample set, and continuously training, an existing machine translation model is optimized for a natural language query system to call. On the other hand, the invention further provides a data query system supporting the natural language.

Description

technical field [0001] The invention relates to the technical field of data query, in particular to a data query method and system supporting natural language. Background technique [0002] With the extensive development and popularization of database applications and information retrieval systems, and the emergence and use of various intelligent portable information terminals, more and more non-professional users need an easy-to-grasp man-machine interface to access the required information. At present, most of the common forms are data reports based on windows and menus. Users only need to click with the mouse and a small amount of keyboard operations to obtain the required information from the database. But this method is not flexible and comprehensive enough, and many problems cannot or are difficult to express in this way. Another common way is to query the database through the standard SQL language. Although the SQL language is concise, clear and efficient, its langua...

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/242
Inventor 周晔穆海洁熊怡
Owner 上海汇付支付有限公司
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