IP Library Granted Patent US 12,547,650
Granted Patent B2
US 12,547,650 · App. 18/691,796 · Granted Feb 10, 2026

Human-machine conversation method and apparatus, device, and storage medium

Inventors: Yongbin Li (Beijing, CN); Binhua Li (Beijing, CN); Xiang Shi (Hangzhou, CN); Ruiying Geng (Beijing, CN); Binyuan Hui (Beijing, CN); Jian Sun (Beijing, CN)
Assignee: ALIBABA DAMO (HANGZHOU) TECHNOLOGY CO., LTD.
G06F16/3329G06F16/3332G06F16/3344
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,547,650
App. No.
18/691,796
Granted
Feb 10, 2026
Kind
B2
Abstract

A human-machine conversation method and apparatus, a device, and a storage medium. The method comprises: acquiring a user statement of a current round; determining, from one or more candidate tables, one or more target tables that match the user statement; parsing the user statement of the current round to obtain a first query statement; according to the first query statement, querying from the one or more target tables to obtain target data; and generating a system reply of the current round according to the target data.

Claims (60)

1 . A human-computer dialogue method comprising, by one or more computer devices:

acquiring a user statement for a current round;

determining, from one or more candidate tables, one or more target tables that match the user statement;

parsing the user statement for the current round to obtain a first query statement, wherein parsing the user statement further comprising:

generating a sample query statement related to each candidate table in the one or more candidate tables;

converting the sample query statement into a first natural language statement;

obtaining training data according to the sample query statement related to each candidate table and the first natural language statement;

performing model training according to the training data to obtain the preset model; and

taking the one or more target tables and the user statement for the current round as inputs of a preset model to obtain the first query statement through the preset model;

querying from the one or more target tables according to the first query statement to obtain target data, wherein querying from the one or more target tables further comprising:

processing the first query statement according to a historical query statement corresponding to a user historical statement in historical dialogue data, a conversation action corresponding to the user statement for the current round, and a system state corresponding to the historical dialogue data, to obtain a second query statement; and

querying from the one or more target tables according to the second query statement to obtain the target data;

wherein:

the conversation action is obtained according to the historical query statement and the first query statement, and the conversation action comprises adding a query condition, deleting the query condition and modifying the query condition; and

the system state corresponding to the historical dialogue data is used to characterize whether a historical system reply in the historical dialogue data is a query statement;

and

generating a system reply for the current round according to the target data.

2 . The method according to claim 1 , wherein generating the system reply for the current round according to the target data comprises: generating the system reply for the current round according to the target data and the user statement for the current round.

3 . The method according to claim 1 , wherein performing the model training according to the training data comprises: training a pre-trained model according to the training data to obtain the preset model, the pre-trained model being a model trained in advance according to table information.

4 . The method according to claim 1 , wherein obtaining the training data according to the sample query statement related to each candidate table and the first natural language statement comprises: replacing a keyword in the first natural language statement with a synonym or a synonymous phrase corresponding to the keyword to obtain one or more second natural language statements corresponding to the sample query statement; and

obtaining the training data according to the sample query statement related to each candidate table, the first natural language statement and the one or more second natural language statements.

5 . An electronic device, comprising:

a memory;

a processor; and

a computer program;

wherein the computer program is stored in the memory and configured to be executed by the processor to implement the following steps;

acquiring a user statement for a current round;

determining, from one or more candidate tables, one or more target tables that match the user statement;

parsing the user statement for the current round to obtain a first query statement, wherein parsing the user statement further comprising:

generating a sample query statement related to each candidate table in the one or more candidate tables;

converting the sample query statement into a first natural language statement;

obtaining training data according to the sample query statement related to each candidate table and the first natural language statement;

performing model training according to the training data to obtain the preset model; and

taking the one or more target tables and the user statement for the current round as inputs of a preset model to obtain the first query statement through the preset model;

querying from the one or more target tables according to the first query statement to obtain target data, wherein querying from the one or more target tables further comprising:

processing the first query statement according to a historical query statement corresponding to a user historical statement in historical dialogue data, a conversation action corresponding to the user statement for the current round, and a system state corresponding to the historical dialogue data, to obtain a second query statement; and

querying from the one or more target tables according to the second query statement to obtain the target data;

wherein:

the conversation action is obtained according to the historical query statement and the first query statement, and the conversation action comprises adding a query condition, deleting the query condition and modifying the query condition; and

the system state corresponding to the historical dialogue data is used to characterize whether a historical system reply in the historical dialogue data is a query statement;

and

generating a system reply for the current round according to the target data.

6 . The electronic device according to claim 5 , wherein generating the system reply for the current round according to the target data comprises: generating the system reply for the current round according to the target data and the user statement for the current round.

7 . A non-transitory computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the following steps:

acquiring a user statement for a current round;

determining, from one or more candidate tables, one or more target tables that match the user statement;

parsing the user statement for the current round to obtain a first query statement, wherein parsing the user statement further comprising:

generating a sample query statement related to each candidate table in the one or more candidate tables;

converting the sample query statement into a first natural language statement;

obtaining training data according to the sample query statement related to each candidate table and the first natural language statement;

performing model training according to the training data to obtain the preset model; and

taking the one or more target tables and the user statement for the current round as inputs of a preset model to obtain the first query statement through the preset model;

querying from the one or more target tables according to the first query statement to obtain target data, wherein querying from the one or more target tables further comprising:

processing the first query statement according to a historical query statement corresponding to a user historical statement in historical dialogue data, a conversation action corresponding to the user statement for the current round, and a system state corresponding to the historical dialogue data, to obtain a second query statement; and

querying from the one or more target tables according to the second query statement to obtain the target data;

wherein:

the conversation action is obtained according to the historical query statement and the first query statement, and the conversation action comprises adding a query condition, deleting the query condition and modifying the query condition; and

the system state corresponding to the historical dialogue data is used to characterize whether a historical system reply in the historical dialogue data is a query statement;

and

generating a system reply for the current round according to the target data.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 18, 2025
From: LI, YONGBIN; LI, BINHUA; GENG, RUIYING; HUI, BINYUAN; SUN, JIAN
To: ALIBABA DAMO (HANGZHOU) TECHNOLOGY CO., LTD.
Reel/Frame 071446/0116 →
Priority Claims (1)
CN 202111165469.7 · Sep 30, 2021 · national
Continuity (1)
Related Publication 20240394287A1 · Nov 28, 2024
References Cited (21)
US 20040162838A1 · Murayama · 2004 [cited by examiner]
US 20160012052A1 · Zoryn · 2016 [cited by examiner]
US 20210191962A1 · Qu · 2021 [cited by examiner]
US 20210209163A1 · Boxwell · 2021 [cited by examiner]
CN 101706792A · 2010 [cited by examiner]
CN 108241649 · 2018 [cited by applicant]
CN 111428027 · 2020 [cited by applicant]
CN 111459977A · 2020 [cited by applicant]
CN 111625635 · 2020 [cited by applicant]
CN 111984766 · 2020 [cited by applicant]
CN 112069206 · 2020 [cited by applicant]
CN 112527998 · 2021 [cited by applicant]
CN 113254619 · 2021 [cited by applicant]
CN 113254619A · 2021 [cited by examiner]
CN 114186016 · 2022 [cited by applicant]
WO 2017010652 · 2017 [cited by applicant]
Office Action and Search Report for Chinese Patent Application No. 202111165469.7 mailed Dec. 13, 2024 with English Translation (18 pages). [cited by applicant]
English Translation of International Search Report mailed Oct. 27, 2022 for International PCT Patent Application No. PCT/CN2022/109990 (3 pages). [cited by applicant]
The first search report of the priority CN patent application No. 202111165469.7, mail date Aug. 5, 2024. [cited by applicant]
The supplementary search report of the priority CN patent application No. 202111165469.7, mail date Dec. 13, 2024. [cited by applicant]
Li, Zhi et al. “Research and Prospect of Automatic Question Answer Based on Table”, Computer Engineering and Applications, Apr. 28, 2021, 57 (13). [cited by applicant]