Grammaticality classification for natural language generation in assistant systems
US-10978056-B1 · Apr 13, 2021 · US
US11562010B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-11562010-B2 |
| Application number | US-202017024654-A |
| Country | US |
| Kind code | B2 |
| Filing date | Sep 17, 2020 |
| Priority date | Feb 12, 2020 |
| Publication date | Jan 24, 2023 |
| Grant date | Jan 24, 2023 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
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.
Opening claim text (preview).
What is claimed is: 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.
Inference or reasoning models · CPC title
using natural language analysis · CPC title
Knowledge representation; Symbolic representation · CPC title
Named entity recognition · CPC title
Presentation of query results · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.