-
公开(公告)号:US20230177363A1
公开(公告)日:2023-06-08
申请号:US17457445
申请日:2021-12-03
发明人: JING LI , Jian Wang , JIAN MIN JIANG , Zi Ming Huang , Zhen Zhang , WANQING LIU
IPC分类号: G06N5/04 , G06N5/02 , G06F40/295
CPC分类号: G06N5/04 , G06N5/02 , G06F40/295
摘要: A processor obtains a pair including a question and an answer in natural language; determines at least one entity in the question and an entity type of each of the at least one entity consistent with the schema of a knowledge graph (KG); identifies a subset of candidate query templates based on the entity type of each of the at least one entity, wherein the candidate query templates are generated based on the schema of the KG; composes a set of queries by populating the at least one entity into each of the subset of candidate query templates; executes the set of queries on the KG to generate respective answers; identifies a first answer from the respective answers that is matching with the answer in the pair; and determines a candidate query template, from the subset of candidate query templates, corresponding to the first answer as a query template.