US 11132504
Framework for understanding complex natural language queries in a dialog context
Granted 2021-09-28 · Filed 2019-03-25 · Application 16/363,929 · Utility · Kind B1
- Assignee as printed
- SoundHound, Inc., Santa Clara, CA (US)
- Inventors
- Bernard Mont-Reynaud, Sunnyvale, CA (US); Christopher S. Wilson, Sunnyvale, CA (US); Keyvan Mohajer, Los Gatos, CA (US)
- CPC, current
- G06F40/205; G06F40/30; G06F16/24
Abstract
A domain-independent framework parses and interprets compound natural language queries in the context of a conversation between a human and an agent. Generic grammar rules and corresponding semantics support the understanding of compound queries in the conversation context. The sub-queries themselves are from one or more domains, and they are parsed and interpreted by a pre-existing grammar, covering one or more pre-existing domains. The pre-existing grammar, extended by the generic rules, recognizes all compound queries based on any queries recognized by the pre-existing grammar. Use of the disclosed framework requires little or no change in the domain-specific NLU handling code. The framework defines a generic approach to propagating context data between sub-queries of a compound query. The framework can be further extended to propagate intra-query context data in, out and across query components. Complex query results, and other data such as accounting data, can also be propagated simultaneously with dialog context data in a consolidated intra-query context data structure.
The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.
Claim 1
Independent claim.
1. A method for processing a natural language compound query having a plurality of natural language sub-queries, the method comprising:
- Claim 1, element e1receiving, by a semantic parser having a plurality of sub-query parsers executing on a computing device, incoming conversation state data for a compound query; 136–294
- Claim 1, element e2creating incoming context data for a first sub-query parser from the incoming conversation state data; 296–397
- Claim 1, element e3parsing each natural language sub-query in left-to-right order by the plurality of sub-query parsers, each sub-query parser associated with one of the plurality of natural language sub-queries, whereby the semantic parser and the sub-query parsers are top-down parsers, 399–667
- Claim 1, element e4wherein each sub-query parser operates to: 669–710
- Claim 1, element e5receiving the incoming context data as input for parsing the sub-query by the sub-query parser; 712–806
- Claim 1, element e6computing, by the sub-query parser as an output of parsing the sub-query, outgoing context data for the sub-query; and 808–921
- Claim 1, element e7providing the outgoing context data as incoming context data for a next sub-query; and 927–1008
- Claim 1, element e8extracting outgoing conversation state data of the compound query from the outgoing context data provided by a last sub-query parser of the plurality of sub-query parsers.1014–1184
13 dependent claims: 2 to 14 (2, 4, 6, 8, 10, 11, 12, 13, 14 on claim 1; 3 on 2; 5 on 4; 7 on 6; 9 on 8)
Claim 2
Depends on claim 1.
2. The method of claim 1 , wherein
- Claim 2, element e1the parser includes a fixed high-level cross-domain grammar to process compound queries from one or more domains.35–147
Claim 3
Depends on claim 2.
3. The method of claim 2 , wherein
- Claim 3, element e1the fixed cross-domain grammar defines a set of cross-domain joiner words used as separators between sub-queries.35–147
Claim 4
Depends on claim 1.
4. The method of claim 1 , where
- Claim 4, element e1each of the incoming conversation state data and the outgoing conversation state data include one or more variable-value pairs.33–159
Claim 5
Depends on claim 4.
5. The method of claim 4 , where
- Claim 5, element e1the one or more variable value pairs are subject to lazy evaluation.33–100
Claim 6
Depends on claim 1.
6. The method of claim 1 , where
- Claim 6, element e1each of the incoming conversation state data and outgoing conversation state data include a collection of attribute-object-value triples.33–169
Claim 7
Depends on claim 6.
7. The method of claim 6 , where
- Claim 7, element e1attribute-object-value triples are subject to lazy evaluation.33–94
Claim 8
Depends on claim 1.
8. The method of claim 1 , where
- Claim 8, element e1each of the incoming conversation state data and outgoing conversation state data include one or more logic formulas.33–149
Claim 9
Depends on claim 8.
9. The method of claim 8 , where
- Claim 9, element e1the one or more logic formulas are subject to lazy evaluation.33–94
Claim 10
Depends on claim 1.
10. The method of claim 1 , where
- Claim 10, element e1parsing a sub-query includes performing anaphora resolution or co-reference resolution using the sub-query's incoming context data.34–164
Claim 11
Depends on claim 1.
11. The method of claim 1 , further comprising:
- Claim 11, element e1generating a result list for the compound query by semantic parser, 48–114
- Claim 11, element e2wherein the parsing of each sub-query includes computing a result, the results of successive sub-queries being concatenated in the context data to create a result list for the compound query.116–306
Claim 12
Depends on claim 1.
12. The method of claim 1 , wherein
- Claim 12, element e1computing the outgoing context data for the sub-query is performed as if the sub-query were a top-level query.36–145
Claim 13
Depends on claim 1.
13. The method of claim 1 , the method further comprising:
- Claim 13, element e1processing an internal parse state of one or more query components according to a context-free semantic grammar, 59–170
- Claim 13, element e2wherein each query component has incoming context data and outgoing context data; 172–252
- Claim 13, element e3receiving incoming conversation state data for the compound query; 254–319
- Claim 13, element e4creating incoming context data for the first sub-query, comprising at least the incoming conversation state data; 321–433
- Claim 13, element e5while parsing each natural language sub-query in left-to-right order: 435–503
- Claim 13, element e6receiving incoming context data for the sub-query; 505–554
- Claim 13, element e7using the incoming context data as input for the parsing; 556–612
- Claim 13, element e8computing, as an output of parsing the sub-query, outgoing context data for the sub-query; and 614–703
- Claim 13, element e9using the outgoing context data as incoming context data for the next sub-query; and 709–788
- Claim 13, element e10deriving the outgoing conversation state of the compound query from the outgoing context data of last sub-query.794–905
Claim 14
Depends on claim 1.
14. The method of claim 1 , wherein
- Claim 14, element e1the semantic parser is incremental.36–70
Claim 15
Independent claim.
15. A method of propagating context data in a top-down semantic parser according to a context-free grammar, the grammar having a rule that includes a left hand side (LHS) symbol and a list of symbols on a right hand side (RHS), the method comprising:
- Claim 15, element e1mapping, by a first mapping module executing on a computing device, the LHS symbol's incoming context to an incoming context for a first RHS symbol in the list of RHS symbols; 251–425
- Claim 15, element e2parsing, by a first parser executing on a computing device, the first RHS symbol and producing an outgoing context for the first RHS symbol; 427–566
- Claim 15, element e3mapping, by a second mapping module executing on a computing device, the outgoing context from the first RHS symbol to an incoming context for a second RHS symbol in the list of symbols; 568–753
- Claim 15, element e4parsing, by a second parser, the second RHS symbol and producing an outgoing context for the second RHS symbol, whereby the first parser and the second parser are top-down parsers; and 755–934
- Claim 15, element e5mapping, by a third mapping module, the outgoing context for the second RHS symbol to an outgoing context for the LHS symbol.940–1064
7 dependent claims: 16 to 22 (16, 17, 18, 19, 20, 21, 22 on claim 15)
Claim 16
Depends on claim 15.
16. The method of claim 15 , wherein
- Claim 16, element e1each of the outgoing and incoming context includes an intra-query context data structure.37–125
Claim 17
Depends on claim 15.
17. The method of claim 15 , wherein
- Claim 17, element e1the mapping includes adding, replacing, or removing an association.37–103
Claim 18
Depends on claim 15.
18. The method of claim 15 , wherein
- Claim 18, element e1the mapping includes adding, replacing, or removing a weighting.37–100
Claim 19
Depends on claim 15.
19. The method of claim 15 , wherein
- Claim 19, element e1the mapping includes an identity function wherein no change is made to the context.37–119
Claim 20
Depends on claim 15.
20. The method of claim 15 , wherein
- Claim 20, element e1the parsing includes continuously parsing an entire phrase in real time.37–108
Claim 21
Depends on claim 15.
21. The method of claim 15 , wherein
- Claim 21, element e1each of the first parser and second parser provides a result, the results collectively forming an output of the semantic parser.37–164
Claim 22
Depends on claim 15.
22. The method of claim 15 , wherein
- Claim 22, element e1the semantic parser is incremental.37–71
Claim 23
Independent claim.
23. A system for propagating context data in a top down semantic parser according to a context-free grammar, comprising:
- Claim 23, element e1a computing device comprising one or more processors, memory, a plurality of mapping modules, and a plurality of parsers, the computing device to: 121–266
- Claim 23, element e2receive a context by the semantic parser; 268–308
- Claim 23, element e3modify the context at one or more of each of the plurality of mapping modules, the plurality of mapping modules including a first mapping module and a last mapping module; and 310–480
- Claim 23, element e4parse a portion of a rule at each of the plurality of parsers, 486–547
- Claim 23, element e5wherein each of the mapping modules except the last mapping module provide a context to one of the plurality of parsers, and wherein each of the plurality of mapping modules except the first mapping module receive an incoming context that is output by one of the plurality of parsers, whereby each of the plurality of parsers are top-down parsers.549–895
8 dependent claims: 24 to 31 (24, 25, 26, 27, 28, 29, 30, 31 on claim 23)
Claim 24
Depends on claim 23.
24. The system of claim 23 , wherein
- Claim 24, element e1the context propagates through each of the plurality of mapping modules and the plurality of parsers.37–137
Claim 25
Depends on claim 23.
25. The system of claim 23 , wherein
- Claim 25, element e1the context includes an intra-query context.37–80
Claim 26
Depends on claim 23.
26. The system of claim 23 , wherein
- Claim 26, element e1modifying the context includes adding, replacing, or removing an association within the context.37–132
Claim 27
Depends on claim 23.
27. The system of claim 23 , wherein
- Claim 27, element e1modifying the context includes adding, replacing, or removing a weighting within the context.37–129
Claim 28
Depends on claim 23.
28. The system of claim 23 , wherein
- Claim 28, element e1the context received by the semantic parser is for a conversation associated with a natural language query.37–143
Claim 29
Depends on claim 23.
29. The system of claim 23 , wherein
- Claim 29, element e1at least one of the one or more mapping modules does not modify the context.37–112
Claim 30
Depends on claim 23.
30. The system of claim 23 , wherein
- Claim 30, element e1each parser parses a symbol within the rule.37–80
Claim 31
Depends on claim 23.
31. The system of claim 23 , wherein
- Claim 31, element e1the semantic parser is incremental.37–71
1. A method for processing a natural language compound query having a plurality of natural language sub-queries, the method comprising: receiving, by a semantic parser having a plurality of sub-query parsers executing on a computing device, incoming conversation state data for a compound query; creating incoming context data for a first sub-query parser from the incoming conversation state data; parsing each natural language sub-query in left-to-right order by the plurality of sub-query parsers, each sub-query parser associated with one of the plurality of natural language sub-queries, whereby the semantic parser and the sub-query parsers are top-down parsers, wherein each sub-query parser operates to: receiving the incoming context data as input for parsing the sub-query by the sub-query parser; computing, by the sub-query parser as an output of parsing the sub-query, outgoing context data for the sub-query; and providing the outgoing context data as incoming context data for a next sub-query; and extracting outgoing conversation state data of the compound query from the outgoing context data provided by a last sub-query parser of the plurality of sub-query parsers.
2. The method of claim 1 , wherein the parser includes a fixed high-level cross-domain grammar to process compound queries from one or more domains.
3. The method of claim 2 , wherein the fixed cross-domain grammar defines a set of cross-domain joiner words used as separators between sub-queries.
4. The method of claim 1 , where each of the incoming conversation state data and the outgoing conversation state data include one or more variable-value pairs.
5. The method of claim 4 , where the one or more variable value pairs are subject to lazy evaluation.
6. The method of claim 1 , where each of the incoming conversation state data and outgoing conversation state data include a collection of attribute-object-value triples.
7. The method of claim 6 , where attribute-object-value triples are subject to lazy evaluation.
8. The method of claim 1 , where each of the incoming conversation state data and outgoing conversation state data include one or more logic formulas.
9. The method of claim 8 , where the one or more logic formulas are subject to lazy evaluation.
10. The method of claim 1 , where parsing a sub-query includes performing anaphora resolution or co-reference resolution using the sub-query's incoming context data.
11. The method of claim 1 , further comprising: generating a result list for the compound query by semantic parser, wherein the parsing of each sub-query includes computing a result, the results of successive sub-queries being concatenated in the context data to create a result list for the compound query.
12. The method of claim 1 , wherein computing the outgoing context data for the sub-query is performed as if the sub-query were a top-level query.
13. The method of claim 1 , the method further comprising: processing an internal parse state of one or more query components according to a context-free semantic grammar, wherein each query component has incoming context data and outgoing context data; receiving incoming conversation state data for the compound query; creating incoming context data for the first sub-query, comprising at least the incoming conversation state data; while parsing each natural language sub-query in left-to-right order: receiving incoming context data for the sub-query; using the incoming context data as input for the parsing; computing, as an output of parsing the sub-query, outgoing context data for the sub-query; and using the outgoing context data as incoming context data for the next sub-query; and deriving the outgoing conversation state of the compound query from the outgoing context data of last sub-query.
14. The method of claim 1 , wherein the semantic parser is incremental.
15. A method of propagating context data in a top-down semantic parser according to a context-free grammar, the grammar having a rule that includes a left hand side (LHS) symbol and a list of symbols on a right hand side (RHS), the method comprising: mapping, by a first mapping module executing on a computing device, the LHS symbol's incoming context to an incoming context for a first RHS symbol in the list of RHS symbols; parsing, by a first parser executing on a computing device, the first RHS symbol and producing an outgoing context for the first RHS symbol; mapping, by a second mapping module executing on a computing device, the outgoing context from the first RHS symbol to an incoming context for a second RHS symbol in the list of symbols; parsing, by a second parser, the second RHS symbol and producing an outgoing context for the second RHS symbol, whereby the first parser and the second parser are top-down parsers; and mapping, by a third mapping module, the outgoing context for the second RHS symbol to an outgoing context for the LHS symbol.
16. The method of claim 15 , wherein each of the outgoing and incoming context includes an intra-query context data structure.
17. The method of claim 15 , wherein the mapping includes adding, replacing, or removing an association.
18. The method of claim 15 , wherein the mapping includes adding, replacing, or removing a weighting.
19. The method of claim 15 , wherein the mapping includes an identity function wherein no change is made to the context.
20. The method of claim 15 , wherein the parsing includes continuously parsing an entire phrase in real time.
21. The method of claim 15 , wherein each of the first parser and second parser provides a result, the results collectively forming an output of the semantic parser.
22. The method of claim 15 , wherein the semantic parser is incremental.
23. A system for propagating context data in a top down semantic parser according to a context-free grammar, comprising: a computing device comprising one or more processors, memory, a plurality of mapping modules, and a plurality of parsers, the computing device to: receive a context by the semantic parser; modify the context at one or more of each of the plurality of mapping modules, the plurality of mapping modules including a first mapping module and a last mapping module; and parse a portion of a rule at each of the plurality of parsers, wherein each of the mapping modules except the last mapping module provide a context to one of the plurality of parsers, and wherein each of the plurality of mapping modules except the first mapping module receive an incoming context that is output by one of the plurality of parsers, whereby each of the plurality of parsers are top-down parsers.
24. The system of claim 23 , wherein the context propagates through each of the plurality of mapping modules and the plurality of parsers.
25. The system of claim 23 , wherein the context includes an intra-query context.
26. The system of claim 23 , wherein modifying the context includes adding, replacing, or removing an association within the context.
27. The system of claim 23 , wherein modifying the context includes adding, replacing, or removing a weighting within the context.
28. The system of claim 23 , wherein the context received by the semantic parser is for a conversation associated with a natural language query.
29. The system of claim 23 , wherein at least one of the one or more mapping modules does not modify the context.
30. The system of claim 23 , wherein each parser parses a symbol within the rule.
31. The system of claim 23 , wherein the semantic parser is incremental.
The text of each claim as printed, for pasting a claim word for word. The links in the tree view name the same claims and elements.
Status
active
As of 2026-11-17, the USPTO record for US 11132504 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2039-08-12 (20 years from filing, plus 140 days of patent term adjustment), a date not yet passed (data version 20261117.2).
- Basis
- term_20y · pta_days:140 (20 years from filing, plus 140 days of patent term adjustment)
- Term end
- 2039-08-12 Computed from the dates in the USPTO record
- Fee lapse
- none on record
- Reinstatement
- none on record; reinstatement_possible: false, not lapsed
- As of
- 2026-11-17
- Data version
- 20261117.2
A fact about the record with its basis and its as-of date, not legal advice.
Citations
References cited on the grant: 7 US patent documents · Cited by: 77 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/11132504/ (needs a free key, as the links under Get this as data)
Family outside the US
Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).
This patent's family on USPTO Global Dossier
Family data from Google Patents Public Datasets, used under CC BY 4.0.
Record JSON
{
"patent_id": "11132504",
"status": "active",
"basis": [
"term_20y",
"pta_days:140"
],
"reinstatement_possible": false,
"reinstatement_basis": "not lapsed",
"expiry_date_estimated": "2039-08-12",
"lapse_date": null,
"reinstated_date": null,
"as_of": "2026-11-17",
"data_version": "20261117.2",
"catalog_data_version": "20261117.2",
"permalink": "https://patentref.io/p/11132504?v=20261117.2",
"next_steps": [
{
"kind": "record",
"url": "https://patentref.io/p/11132504?v=20261117.2",
"audience": "human"
},
{
"kind": "patent",
"url": "https://patentref.io/api/v1/patent/11132504/",
"audience": "agent"
},
{
"kind": "fee_events",
"tool": "uspto_patent_center",
"url": "https://patentcenter.uspto.gov/applications?patentNumber=11132504",
"audience": "agent"
}
]
}
Get this as data
- Full record
/api/v1/patent/11132504/ - Status record
/api/v1/lapse/status/11132504/ - Claim tree
/api/v1/structure/claims/11132504/ - Brief
/api/v1/structure/brief/11132504/
These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.