US 10978056
Grammaticality classification for natural language generation in assistant systems
Granted 2021-04-13 · Filed 2019-01-31 · Application 16/264,173 · Utility · Kind B1
- Assignee as printed
- Facebook, Inc., Menlo Park, CA (US) · PatentsView label: FACEBOOK, INC.
- Inventors
- Ashwini Challa, Mountain View, CA (US); Anusha Balakrishnan, Santa Clara, CA (US); Rajen Subba, Redwood City, CA (US); Kartikeya Upasani, Sunnyvale, CA (US); Shawn C. P. Mei, San Francisco, CA (US)
- CPC, current
- G06F40/35; G10L15/19; G06F16/3329; G06F16/3344; G06F16/338; G06F16/9035; G06F40/56; G06N3/0442; G06N3/045; G06N3/0464; G06N3/09; G06N5/01; G06N5/025; G06N20/00; G10L15/063; G10L15/22; G06F40/253; G10L2015/0631; G10L2015/225
Abstract
In one embodiment, a method includes receiving a user input from a client system associated with a user, generating a plurality of candidate responses by a natural-language generation module in response to the user input, determining a quality-indication by a filtering module for each candidate response of the plurality of candidate responses based on one or more classification models and one or more classification rules, wherein the classification models and classification rules are based on one or more acceptance-criteria, selecting one or more candidate responses from the plurality of candidate responses based on their respective quality-indications, ranking the selected candidate responses based on one or more ranking-criteria, and sending instructions for presenting a top-ranked candidate response to the user to the client system associated with the user responsive to receiving the user input.
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 comprising,
- Claim 1, element e1by one or more computing systems: 24–56
- Claim 1, element e2receiving, from a client system associated with a user, a user input; 58–126
- Claim 1, element e3generating, by a natural-language generation module, a plurality of candidate responses in response to the user input; 128–245
- Claim 1, element e4determining, by a filtering module, for each candidate response of the plurality of candidate responses, a quality-indication for the candidate response based on one or more classification models and one or more classification rules, 247–479
- Claim 1, element e5wherein the one or more classification models and the one or more classification rules each correspond to a respective acceptance-criteria, and wherein the one or more classification rules are based on one or more slots and one or more intents associated with the user input; 481–755
- Claim 1, element e6selecting one or more candidate responses from the plurality of candidate responses based on a plurality of quality-indications associated with the plurality of candidate responses, respectively; 757–951
- Claim 1, element e7ranking the one or more selected candidate responses based on one or more ranking-criteria; and 953–1043
- Claim 1, element e8sending, to the client system associated with the user responsive to receiving the user input, instructions for presenting a top-ranked candidate response to the user.1049–1215
15 dependent claims: 2 to 16 (2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 14 on claim 1; 8 on 7; 13 on 12; 15, 16 on 14)
Claim 2
Depends on claim 1.
2. The method of claim 1 , wherein
- Claim 2, element e1one or more of the one or more selected candidate responses is generated by a language-template, 35–130
- Claim 2, element e2wherein the language-template integrates one or more n-grams based on a particular order into a candidate response.132–246
Claim 3
Depends on claim 1.
3. The method of claim 1 , wherein
- Claim 3, element e1one or more of the one or more selected candidate responses is generated by an information-retrieval algorithm, 35–145
- Claim 3, element e2wherein the information-retrieval algorithm searches a data store comprising a plurality of responses to identify the one or more of the one or more selected candidate responses.147–324
Claim 4
Depends on claim 1.
4. The method of claim 1 , wherein
- Claim 4, element e1one or more of the one or more selected candidate responses is generated by a machine-learning algorithm, 35–139
- Claim 4, element e2wherein the machine-learning algorithm is based on a long-short term memory (LSTM) model.141–229
Claim 5
Depends on claim 1.
5. The method of claim 1 , wherein
- Claim 5, element e1the one or more classification models comprise one or more of a grammaticality model, a semantic-correctness model, or a naturalness model.35–173
Claim 6
Depends on claim 1.
6. The method of claim 1 , further comprising:
- Claim 6, element e1training the one or more classification models based on a plurality of training samples, each training sample comprising a pre-generated response and a pre-annotated quality-indication associated with the pre-generated response.47–274
Claim 7
Depends on claim 1.
7. The method of claim 1 , wherein
- Claim 7, element e1the one or more classification models are based on gradient boosted decision tree.35–116
Claim 8
Depends on claim 7.
8. The method of claim 7 , further comprising
- Claim 8, element e1training the one or more classification models based on a plurality of training samples, 46–133
- Claim 8, element e2wherein training each of the one or more classification models comprises: 135–207
- Claim 8, element e3training, based on the plurality of training samples, an n-gram based language model for each of the one or more classification models, respectively; 209–357
- Claim 8, element e4generating, by the respective n-gram based language model, a plurality of intermediate responses for each of the one or more classification models, respectively; 359–519
- Claim 8, element e5extracting, by the respective n-gram based language model, features of the plurality of respective intermediate responses for each of the one or more classification models, respectively; and 521–706
- Claim 8, element e6training, based on gradient boosted decision tree, each of the one or more classification models by using the respective features for each of the one or more classification models.712–891
Claim 9
Depends on claim 1.
9. The method of claim 1 , wherein
- Claim 9, element e1the one or more classification models are based on one or more convolutional neural networks.35–127
Claim 10
Depends on claim 1.
10. The method of claim 1 , wherein
- Claim 10, element e1the one or more classification rules are based on one or more of: 36–100
- Claim 10, element e2metadata associated with the user input; 102–141
- Claim 10, element e3a language-structure of the user input; 143–181
- Claim 10, element e4user profile data associated with the user; or 183–225
- Claim 10, element e5historical user input from the user and corresponding candidate responses presented to the user.230–325
Claim 11
Depends on claim 1.
11. The method of claim 1 , further comprising:
- Claim 11, element e1determining, by a natural-language understanding module, the one or more slots and the one or more intents associated with the user input.48–185
Claim 12
Depends on claim 1.
12. The method of claim 1 , further comprising:
- Claim 12, element e1determining, based on contextual information associated with the user input, a modality for presenting the top-ranked candidate response to the user.48–196
Claim 13
Depends on claim 12.
13. The method of claim 12 , wherein
- Claim 13, element e1the one or more classification rules are based on the determined modality.37–110
Claim 14
Depends on claim 1.
14. The method of claim 1 , wherein
- Claim 14, element e1each candidate response of the plurality of candidate responses is associated with a confidence score.36–137
Claim 15
Depends on claim 14.
15. The method of claim 14 , wherein
- Claim 15, element e1the one or more ranking-criteria are based on one or more of: 37–97
- Claim 15, element e2the one or more confidence scores associated with the one or more selected candidate responses; or 99–193
- Claim 15, element e3a consistence of the one or more selected candidate responses with respect to the user input.198–290
Claim 16
Depends on claim 14.
16. The method of claim 14 , further comprising:
- Claim 16, element e1determining, by the one or more classification models, a threshold score for determining a quality-indication for a candidate response based on the plurality of confidence scores associated with the plurality of candidate responses.49–280
Claim 17
Independent claim.
17. One or more computer-readable non-transitory storage media embodying software that is operable when executed to: receive, from a client system associated with a user, a user input; generate, by a natural-language generation module, a plurality of candidate responses in response to the user input; determine, by a filtering module, for each candidate response of the plurality of candidate responses, a quality-indication for the candidate response based on one or more classification models and one or more classification rules, wherein
- Claim 17, element e1the one or more classification models and the one or more classification rules each correspond to a respective acceptance-criteria, and wherein the one or more classification rules are based on one or more slots and one or more intents associated with the user input; 542–808
- Claim 17, element e2select one or more candidate responses from the plurality of candidate responses based on a plurality of quality-indications associated with the plurality of candidate responses, respectively; 810–1001
- Claim 17, element e3rank the one or more selected candidate responses based on one or more ranking-criteria; and 1003–1090
- Claim 17, element e4send, to the client system associated with the user responsive to receiving the user input, instructions for presenting a top-ranked candidate response to the user.1096–1259
Claim 18
Independent claim.
18. A system comprising:
- Claim 18, element e1one or more processors; and 25–47
- Claim 18, element e2a non-transitory memory coupled to the one or more processors comprising instructions executable by the one or more processors, the one or more processors operable when executing the instructions to: 53–251
- Claim 18, element e3receive, from a client system associated with a user, a user input; 253–319
- Claim 18, element e4generate, by a natural-language generation module, a plurality of candidate responses in response to the user input; 321–436
- Claim 18, element e5determine, by a filtering module, for each candidate response of the plurality of candidate responses, a quality-indication for the candidate response based on one or more classification models and one or more classification rules, 438–668
- Claim 18, element e6wherein the one or more classification models and the one or more classification rules each correspond to a respective acceptance-criteria, and wherein the one or more classification rules are based on one or more slots and one or more intents associated with the user input; 670–944
- Claim 18, element e7select one or more candidate responses from the plurality of candidate responses based on a plurality of quality-indications associated with the plurality of candidate responses, respectively; 946–1137
- Claim 18, element e8rank the one or more selected candidate responses based on one or more ranking-criteria; and 1139–1226
- Claim 18, element e9send, to the client system associated with the user responsive to receiving the user input, instructions for presenting a top-ranked candidate response to the user.1232–1395
1. A method comprising, by one or more computing systems: receiving, from a client system associated with a user, a user input; generating, by a natural-language generation module, a plurality of candidate responses in response to the user input; determining, by a filtering module, for each candidate response of the plurality of candidate responses, a quality-indication for the candidate response based on one or more classification models and one or more classification rules, wherein the one or more classification models and the one or more classification rules each correspond to a respective acceptance-criteria, and wherein the one or more classification rules are based on one or more slots and one or more intents associated with the user input; selecting one or more candidate responses from the plurality of candidate responses based on a plurality of quality-indications associated with the plurality of candidate responses, respectively; ranking the one or more selected candidate responses based on one or more ranking-criteria; and sending, to the client system associated with the user responsive to receiving the user input, instructions for presenting a top-ranked candidate response to the user.
2. The method of claim 1 , wherein one or more of the one or more selected candidate responses is generated by a language-template, wherein the language-template integrates one or more n-grams based on a particular order into a candidate response.
3. The method of claim 1 , wherein one or more of the one or more selected candidate responses is generated by an information-retrieval algorithm, wherein the information-retrieval algorithm searches a data store comprising a plurality of responses to identify the one or more of the one or more selected candidate responses.
4. The method of claim 1 , wherein one or more of the one or more selected candidate responses is generated by a machine-learning algorithm, wherein the machine-learning algorithm is based on a long-short term memory (LSTM) model.
5. The method of claim 1 , wherein the one or more classification models comprise one or more of a grammaticality model, a semantic-correctness model, or a naturalness model.
6. The method of claim 1 , further comprising: training the one or more classification models based on a plurality of training samples, each training sample comprising a pre-generated response and a pre-annotated quality-indication associated with the pre-generated response.
7. The method of claim 1 , wherein the one or more classification models are based on gradient boosted decision tree.
8. The method of claim 7 , further comprising training the one or more classification models based on a plurality of training samples, wherein training each of the one or more classification models comprises: training, based on the plurality of training samples, an n-gram based language model for each of the one or more classification models, respectively; generating, by the respective n-gram based language model, a plurality of intermediate responses for each of the one or more classification models, respectively; extracting, by the respective n-gram based language model, features of the plurality of respective intermediate responses for each of the one or more classification models, respectively; and training, based on gradient boosted decision tree, each of the one or more classification models by using the respective features for each of the one or more classification models.
9. The method of claim 1 , wherein the one or more classification models are based on one or more convolutional neural networks.
10. The method of claim 1 , wherein the one or more classification rules are based on one or more of: metadata associated with the user input; a language-structure of the user input; user profile data associated with the user; or historical user input from the user and corresponding candidate responses presented to the user.
11. The method of claim 1 , further comprising: determining, by a natural-language understanding module, the one or more slots and the one or more intents associated with the user input.
12. The method of claim 1 , further comprising: determining, based on contextual information associated with the user input, a modality for presenting the top-ranked candidate response to the user.
13. The method of claim 12 , wherein the one or more classification rules are based on the determined modality.
14. The method of claim 1 , wherein each candidate response of the plurality of candidate responses is associated with a confidence score.
15. The method of claim 14 , wherein the one or more ranking-criteria are based on one or more of: the one or more confidence scores associated with the one or more selected candidate responses; or a consistence of the one or more selected candidate responses with respect to the user input.
16. The method of claim 14 , further comprising: determining, by the one or more classification models, a threshold score for determining a quality-indication for a candidate response based on the plurality of confidence scores associated with the plurality of candidate responses.
17. One or more computer-readable non-transitory storage media embodying software that is operable when executed to: receive, from a client system associated with a user, a user input; generate, by a natural-language generation module, a plurality of candidate responses in response to the user input; determine, by a filtering module, for each candidate response of the plurality of candidate responses, a quality-indication for the candidate response based on one or more classification models and one or more classification rules, wherein the one or more classification models and the one or more classification rules each correspond to a respective acceptance-criteria, and wherein the one or more classification rules are based on one or more slots and one or more intents associated with the user input; select one or more candidate responses from the plurality of candidate responses based on a plurality of quality-indications associated with the plurality of candidate responses, respectively; rank the one or more selected candidate responses based on one or more ranking-criteria; and send, to the client system associated with the user responsive to receiving the user input, instructions for presenting a top-ranked candidate response to the user.
18. A system comprising: one or more processors; and a non-transitory memory coupled to the one or more processors comprising instructions executable by the one or more processors, the one or more processors operable when executing the instructions to: receive, from a client system associated with a user, a user input; generate, by a natural-language generation module, a plurality of candidate responses in response to the user input; determine, by a filtering module, for each candidate response of the plurality of candidate responses, a quality-indication for the candidate response based on one or more classification models and one or more classification rules, wherein the one or more classification models and the one or more classification rules each correspond to a respective acceptance-criteria, and wherein the one or more classification rules are based on one or more slots and one or more intents associated with the user input; select one or more candidate responses from the plurality of candidate responses based on a plurality of quality-indications associated with the plurality of candidate responses, respectively; rank the one or more selected candidate responses based on one or more ranking-criteria; and send, to the client system associated with the user responsive to receiving the user input, instructions for presenting a top-ranked candidate response to the user.
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 10978056 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2039-08-07 (20 years from filing, plus 188 days of patent term adjustment), a date not yet passed (data version 20261117.2).
- Basis
- term_20y · pta_days:188 (20 years from filing, plus 188 days of patent term adjustment)
- Term end
- 2039-08-07 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: 35 US patent documents · Cited by: 194 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10978056/ (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": "10978056",
"status": "active",
"basis": [
"term_20y",
"pta_days:188"
],
"reinstatement_possible": false,
"reinstatement_basis": "not lapsed",
"expiry_date_estimated": "2039-08-07",
"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/10978056?v=20261117.2",
"next_steps": [
{
"kind": "record",
"url": "https://patentref.io/p/10978056?v=20261117.2",
"audience": "human"
},
{
"kind": "patent",
"url": "https://patentref.io/api/v1/patent/10978056/",
"audience": "agent"
},
{
"kind": "fee_events",
"tool": "uspto_patent_center",
"url": "https://patentcenter.uspto.gov/applications?patentNumber=10978056",
"audience": "agent"
}
]
}
Get this as data
- Full record
/api/v1/patent/10978056/ - Status record
/api/v1/lapse/status/10978056/ - Claim tree
/api/v1/structure/claims/10978056/ - Brief
/api/v1/structure/brief/10978056/
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.