Knowledge-based framework for improving natural language understanding
First Claim
1. An electronic device, comprising:
- one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for;
receiving natural language input;
determining, from a plurality of domains, a domain corresponding to the natural language input;
in accordance with determining that the domain corresponds to a predetermined type of domain;
determining a first and a second parsing result for the natural language input, wherein each of the first and the second parsing results comprises a respective mapping of one or more properties of the domain to one or more words of the natural language input and wherein a first confidence score of the first parsing result is higher than a second confidence score of the second parsing result;
determining whether the first parsing result corresponds to any of a plurality of data items in a knowledge base;
determining whether the second parsing result corresponds to a data item of the plurality of data items in the knowledge base; and
in accordance with a determination that the first parsing result does not correspond to any of the plurality of data items in the knowledge base and in accordance with a determination that the second parsing result corresponds to the data item of the plurality of data items in the knowledge base, ranking, using the knowledge base, the second parsing result higher than the first parsing result;
after ranking, using the knowledge base, the second parsing result higher than the first parsing result, generating a task flow using the second parsing result based on the ranking; and
executing the task flow to provide an output based on the data item.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems and processes for operating an intelligent automated assistant are provided. An example process receives natural language input and determines a first and a second parsing result for the natural language input. The first and the second parsing results include respective mappings of one or more properties of a domain corresponding to the natural language input to one or more words of the natural language input. The process determines whether the second parsing result corresponds to a data item in a knowledge base, and in accordance with determining that the second parsing result corresponds to the data item in the knowledge base, the process ranks the second parsing result higher than the first parsing result. Based on the ranking, the process generates a task flow using the second parsing result and executes the task flow to provide an output based on the data item.
-
Citations
42 Claims
-
1. An electronic device, comprising:
-
one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for; receiving natural language input; determining, from a plurality of domains, a domain corresponding to the natural language input; in accordance with determining that the domain corresponds to a predetermined type of domain; determining a first and a second parsing result for the natural language input, wherein each of the first and the second parsing results comprises a respective mapping of one or more properties of the domain to one or more words of the natural language input and wherein a first confidence score of the first parsing result is higher than a second confidence score of the second parsing result; determining whether the first parsing result corresponds to any of a plurality of data items in a knowledge base; determining whether the second parsing result corresponds to a data item of the plurality of data items in the knowledge base; and in accordance with a determination that the first parsing result does not correspond to any of the plurality of data items in the knowledge base and in accordance with a determination that the second parsing result corresponds to the data item of the plurality of data items in the knowledge base, ranking, using the knowledge base, the second parsing result higher than the first parsing result; after ranking, using the knowledge base, the second parsing result higher than the first parsing result, generating a task flow using the second parsing result based on the ranking; and executing the task flow to provide an output based on the data item. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A method for processing natural language requests, the method comprising:
at an electronic device with one or more processors and memory; receiving natural language input; determining, from a plurality of domains, a domain corresponding to the natural language input; in accordance with determining that the domain corresponds to a predetermined type of domain; determining a first and a second parsing result for the natural language input, wherein each of the first and the second parsing results comprises a respective mapping of one or more properties of the domain to one or more words of the natural language input and wherein a first confidence score of the first parsing result is higher than a second confidence score of the second parsing result; determining whether the first parsing result corresponds to any of a plurality of data items in a knowledge base; determining whether the second parsing result corresponds to a data item of the plurality of data items in the knowledge base; and in accordance with a determination that the first parsing result does not correspond to any of the plurality of data items in the knowledge base and in accordance with a determination that the second parsing result corresponds to the data item of the plurality of data items in the knowledge base, ranking, using the knowledge base, the second parsing result higher than the first parsing result; after ranking, using the knowledge base, the second parsing result higher than the first parsing result, generating a task flow using the second parsing result based on the ranking; and executing the task flow to provide an output based on the data item. - View Dependent Claims (17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29)
-
16. A non-transitory computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by one or more processors of a first electronic device, cause the first electronic device to:
-
receive natural language input; determine, from a plurality of domains, a domain corresponding to the natural language input; in accordance with determining that the domain corresponds to a predetermined type of domain; determine a first and a second parsing result for the natural language input, wherein each of the first and the second parsing results comprises a respective mapping of one or more properties of the domain to one or more words of the natural language input and wherein a first confidence score of the first parsing result is higher than a second confidence score of the second parsing result; determine whether the first parsing result corresponds to any of a plurality of data items in a knowledge base; determine whether the second parsing result corresponds to a data item of the plurality of data items in the knowledge base; and in accordance with a determination that the first parsing result does not correspond to any of the plurality of data items in the knowledge base and in accordance with a determination that the second parsing result corresponds to the data item of the plurality of data items in the knowledge base, rank, using the knowledge base, the second parsing result higher than the first parsing result; after ranking, using the knowledge base, the second parsing result higher than the first parsing result, generate a task flow using the second parsing result based on the ranking; and execute the task flow to provide an output based on the data item. - View Dependent Claims (30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42)
-
Specification