-
公开(公告)号:US20220179847A1
公开(公告)日:2022-06-09
申请号:US17383642
申请日:2021-07-23
Inventor: Lijie WANG , Ao ZHANG
IPC: 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.
-
公开(公告)号:US20210200763A1
公开(公告)日:2021-07-01
申请号:US16892874
申请日:2020-06-04
Inventor: Lijie WANG , Bo YU , Ke SUN , Tingting LI
IPC: 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.
-