IP Library Granted Patent US 11,562,010
Granted Patent B2
US 11,562,010 · App. 17/024,654 · Granted Jan 24, 2023

Method and apparatus for outputting information

Inventors: Yafei Miao (Beijing, CN); Wensong He (Beijing, CN); Ben Xu (Beijing, CN); Jian Xie (Beijing, CN); Yipin Zhang (Beijing, CN); Yan Wang (Beijing, CN); Yongyi Liu (Beijing, CN); Chu Wang (Beijing, CN)
Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.; Shanghai Xiaodu Technology Co. Ltd.
G06F16/3344G06F16/338G06F40/295G06N5/02G06N5/04
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 11,562,010
App. No.
17/024,654
Granted
Jan 24, 2023
Kind
B2
Abstract

Embodiments of the present disclosure provide a method and apparatus for outputting information. A specific embodiment of the method includes: in response to receiving a query, detecting whether there is an entity slot in the query; in response to there being an entity slot in the query, adding the detected entity slot to a candidate slot; detecting, in the query, a relationship-determinative word of an entity; searching in a preset knowledge graph for a peripheral knowledge graph of the candidate slot; and inferring on the basis of the peripheral knowledge graph according to the relationship-determinative word, and outputting an entity word matching the relationship-determinative word.

Claims (59)

1. A method for outputting information, comprising:

in response to receiving a query, detecting whether there is an entity slot in the query;

in response to there being an entity slot in the query, adding the detected entity slot to a candidate slot;

detecting, in the query, a relationship-determinative word of an entity;

searching in a preset knowledge graph for a peripheral knowledge graph of the candidate slot;

inferring on the basis of the peripheral knowledge graph according to the relationship-determinative word;

outputting an entity word matching the relationship-determinative word;

detecting whether there is a demonstrative pronoun in the candidate slot;

in response to there being a demonstrative pronoun in the candidate slot, replacing the demonstrative pronoun with an entity word presenting in the most recent session, wherein the demonstrative pronoun is a word class for substituting a noun or a sentence; and

feeding back the entity word to a terminal device.

2. The method according to claim 1 , wherein the method further comprises:

in response to there being not an entity slot in the query, determining from a historical session an entity slot to add to the candidate slot.

3. The method according to claim 1 , wherein the method further comprises:

determining position and relationship of the entity word presenting in the most recent session in the knowledge graph; and

determining a new entity word according to the position, the relationship and the candidate slot.

4. The method according to claim 3 , wherein the replacing the demonstrative pronoun with the entity word presenting in the most recent session comprises:

in response to a number of entity words presenting in the most recent session exceeding one, finding, according to semantics, an entity word for replacing the demonstrative pronoun, and performing the replacing.

5. The method according to claim 3 , wherein the method further comprises:

inferring, on the basis of the peripheral knowledge graph, according to the entity word presenting the most recent session and the relationship-determinative word, and outputting an entity word matching the entity word presenting the most recent session and the relationship-determinative word.

6. An apparatus for outputting information, comprising:

at least one processor; and

a memory storing instructions, the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:

in response to receiving a query, detecting whether there is an entity slot in the query;

in response to there being an entity slot in the query, adding the detected entity slot to a candidate slot;

detecting, in the query, a relationship-determinative word of an entity;

searching in a preset knowledge graph for a peripheral knowledge graph of the candidate slot;

inferring on the basis of the peripheral knowledge graph according to the relationship-determinative word;

outputting an entity word matching the relationship-determinative word;

detecting whether there is a demonstrative pronoun in the candidate slot;

in response to there being a demonstrative pronoun in the candidate slot, replacing the demonstrative pronoun with an entity word presenting in the most recent session, wherein the demonstrative pronoun is a word class for substituting a noun or a sentence; and

feeding back the entity word to a terminal device.

7. The apparatus according to claim 6 , wherein the operations further comprise:

in response to there being not an entity slot in the query, determining from a historical session an entity slot to add to the candidate slot.

8. The apparatus according to claim 6 , wherein the operations further comprise:

determining position and relationship of the entity word presenting in the most recent session in the knowledge graph; and

determining a new entity word according to the position, the relationship and the candidate slot.

9. The apparatus according to claim 8 , wherein the replacing the demonstrative pronoun with the entity word presenting in the most recent session comprises:

in response to a number of entity words presenting in the most recent session exceeding one, finding, according to semantics, an entity word for replacing the demonstrative pronoun, and performing the replacing.

10. The apparatus according to claim 8 , wherein the operations further comprise:

inferring, on the basis of the peripheral knowledge graph, according to the entity word presenting in the most recent session and the relationship-determinative word, and outputting an entity word matching the entity word presenting the most recent session and the relationship-determinative word.

11. A non-transitory computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, causes the processor to perform operations, the operations comprising:

in response to receiving a query, detecting whether there is an entity slot in the query;

in response to there being an entity slot in the query, adding the detected entity slot to a candidate slot;

detecting, in the query, a relationship-determinative word of an entity;

searching in a preset knowledge graph for a peripheral knowledge graph of the candidate slot;

inferring on the basis of the peripheral knowledge graph according to the relationship-determinative word;

outputting an entity word matching the relationship-determinative word;

detecting whether there is a demonstrative pronoun in the candidate slot;

in response to there being a demonstrative pronoun in the candidate slot, replacing the demonstrative pronoun with an entity word presenting in the most recent session, wherein the demonstrative pronoun is a word class for substituting a noun or a sentence; and

feeding back the entity word to a terminal device.

12. The medium according to claim 11 , wherein the operations further comprise:

in response to there being not an entity slot in the query, determining from a historical session an entity slot to add to the candidate slot.

13. The medium according to claim 11 , where the operations further comprise:

determining position and relationship of the entity word presenting in the most recent session in the knowledge graph; and

determining a new entity word according to the position, the relationship and the candidate slot.

14. The medium according to claim 13 , wherein the replacing the demonstrative pronoun with the entity word presenting in the most recent session comprises:

in response to a number of entity words presenting in the most recent session exceeding one, finding, according to semantics, an entity word for replacing the demonstrative pronoun, and performing the replacing.

15. The medium according to claim 13 , wherein the operations further comprise:

inferring, on the basis of the peripheral knowledge graph, according to the entity word presenting the most recent session and the relationship-determinative word, and outputting an entity word matching the entity word presenting the most recent session and the relationship-determinative word.

Assignments (7)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 5, 2022
From: XU, BEN; XIE, JIAN; ZHANG, YIPIN; LIU, YONGYI
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 061978/0788 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 5, 2022
From: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 061979/0521 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 5, 2022
From: BAIDU.COM TIMES TECHNOLOGY (BEIJING) CO., LTD.
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 061979/0654 →
EMPLOYMENT CONTRACT Recorded Dec 5, 2022
From: MIAO, YAFEI; WANG, YAN
To: BAIDU.COM TIMES TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 062062/0937 →
EMPLOYMENT CONTRACT Recorded Dec 5, 2022
From: HE, WENSONG
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 062063/0013 →
EMPLOYMENT CONTRACT Recorded Dec 5, 2022
From: WANG, CHU
To: BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD.
Reel/Frame 062063/0032 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 30, 2021
From: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.; SHANGHAI XIAODU TECHNOLOGY CO. LTD.
Reel/Frame 056811/0772 →
Priority Claims (1)
CN 202010088113.7 · Feb 12, 2020 · national
Continuity (1)
Related Publication 20210248171A1 · Aug 12, 2021