-
公开(公告)号:US11748340B2
公开(公告)日:2023-09-05
申请号:US17383642
申请日:2021-07-23
Inventor: Lijie Wang , Ao Zhang
IPC: G06F16/00 , G06F16/242 , G06F16/245 , G06F40/205 , G06F40/30
CPC classification number: G06F16/242 , G06F16/245 , G06F40/205 , G06F40/30
Abstract: The present disclosure provides a data pair generating method, apparatus, electronic device and storage medium, and the field of artificial intelligence such as natural language processing and deep learning. The method may include: generating M SQL query statements for a given database, where M is a positive integer greater than one; performing the following processing for each SQL query statement: dividing the SQL query statement into at least one SQL clause; obtaining a question description corresponding to each SQL clause; combining the question descriptions to obtain a question corresponding to the SQL query statement. The solution of the present disclosure may be applied to save manpower and time costs.
-
公开(公告)号:US11449500B2
公开(公告)日:2022-09-20
申请号:US16892874
申请日:2020-06-04
Inventor: Lijie Wang , Bo Yu , Ke Sun , Tingting Li
IPC: G06F16/00 , G06F16/2452 , G06F16/242 , G06F16/28 , G06K9/62
Abstract: Embodiments of the present disclosure provide a method and apparatus for outputting a structured query sentence. The method may include: acquiring a to-be-converted natural language sentence; inputting the to-be-converted natural language sentence into a pre-trained sequence to sequence model to obtain an action sequence corresponding to the to-be-converted natural language sentence; generating a directed acyclic graph according to the action sequence; and outputting a structured query sentence corresponding to the generated directed acyclic graph according to a preset corresponding relationship between a directed acyclic graph and a structured query sentence.
-