Natural language system question classifier, semantic representations, and logical form templates
First Claim
1. In a digital medium environment to answer a question included in a natural language input, a system implemented by at least one computing device, the system comprising:
- a question classifier module implemented at least partially in hardware to classify the natural language input as corresponding to respective ones of a plurality of classes of questions using at least one question classification label;
a semantic extractor module implemented at least partially in hardware to extract a semantic intent of the natural language input as a semantic entity and a semantic representation of the natural language input;
a logical form selector module implemented at least partially in hardware to;
select a plurality of logical form templates, the selection based at least in part on the at least one question classification label;
rank the plurality of logical form templates based on an amount of completion of logical form slot-filling and alignment of named entity types in the natural language input to expected entity types in the logical form templates;
select one of the logical form templates based at least in part on the rank; and
at least partially fill in the selected one of the logical form templates using the semantic entity and the semantic representation;
a query mapper module implemented at least partially in hardware to produce a database query by mapping the at least partially filled in logical form to the database query, the at least partially filled in logical form including;
a pre-condition slot containing a first attribute that controls grouping of results of the database query;
a post-condition slot containing a second attribute that constrains an order of the results of the database query; and
a slot populated with an indicator of a statistical function selected based on the natural language input from a plurality of available statistical functions; and
a database query module implemented at least partially in hardware that generates an answer to the question included in the natural language input by executing the database query against a database structured in accordance with a structure of the database query, the answer providing user assistance by responding to the question.
3 Assignments
0 Petitions
Accused Products
Abstract
Natural language system question classifier, semantic representations, and logical form template techniques and systems are described. In one or more implementations, a natural language input is classified as corresponding to respective ones of a plurality of classes of questions. A semantic intent of the natural language input is extracted as a semantic entity and a semantic representation. Question classification labels that classify the question included in the natural language input is then used to select at least one of a plurality of logical form templates. The semantic intent that is extracted from the natural language input is then used to fill in the selected logical form templates, such as to fill in entity, subject, predicate, and object slots using the semantic entity and semantic representation. The filled-in logical form template is then mapped to form a database query that is then executed to query a database to answer the question.
-
Citations
20 Claims
-
1. In a digital medium environment to answer a question included in a natural language input, a system implemented by at least one computing device, the system comprising:
-
a question classifier module implemented at least partially in hardware to classify the natural language input as corresponding to respective ones of a plurality of classes of questions using at least one question classification label; a semantic extractor module implemented at least partially in hardware to extract a semantic intent of the natural language input as a semantic entity and a semantic representation of the natural language input; a logical form selector module implemented at least partially in hardware to; select a plurality of logical form templates, the selection based at least in part on the at least one question classification label; rank the plurality of logical form templates based on an amount of completion of logical form slot-filling and alignment of named entity types in the natural language input to expected entity types in the logical form templates; select one of the logical form templates based at least in part on the rank; and at least partially fill in the selected one of the logical form templates using the semantic entity and the semantic representation; a query mapper module implemented at least partially in hardware to produce a database query by mapping the at least partially filled in logical form to the database query, the at least partially filled in logical form including; a pre-condition slot containing a first attribute that controls grouping of results of the database query; a post-condition slot containing a second attribute that constrains an order of the results of the database query; and a slot populated with an indicator of a statistical function selected based on the natural language input from a plurality of available statistical functions; and a database query module implemented at least partially in hardware that generates an answer to the question included in the natural language input by executing the database query against a database structured in accordance with a structure of the database query, the answer providing user assistance by responding to the question. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. In a digital medium environment to classify a question included in a natural language input as part of answering a question included in the natural language input, a method implemented by a computing device, the method comprising:
-
receiving a natural language input by the computing device; classifying the natural language input, by the computing device, as corresponding to respective ones of a plurality of classes by; extracting features from the natural language input including, for each word in the natural language input, building a feature representation by concatenating semantic and syntactic information; and processing the extracted features using a classifier model that is trained across a plurality of domains to obtain a question classification label based on each feature representation; generating a database query based at least in part on the obtained question classification label by the computing device, the generating including using the obtained question classification label to select at least one of a plurality of logical form templates that define a structure of the database query, the at least one of a plurality of logical form templates including; a pre-condition slot containing a first attribute that controls grouping of results of the database query; a post-condition slot containing a second attribute that constrains an order of the results of the database query; and a slot populated with an indicator of a statistical function selected based on the natural language input from a plurality of available statistical functions; and producing an answer to the question included in the natural language input by executing the database query against a database structured in accordance with the structure of the database query, the answer providing user assistance by responding to the question. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. In a digital medium environment to extract a semantic intent of a question included in a natural language input as part of answering a question included in the natural language input, a method implemented by a computing device, the method comprising:
-
receiving a natural language input by the computing device; generating part-of-speech tags for each word in the natural language input; extracting the semantic intent of the natural language input automatically and without user intervention by the computing device as a semantic entity and a semantic representation of the natural language input based on the part-of-speech tags, the semantic representation configured as a subject, predicate, object tuple that functions as a statement linking the subject to the object via the predicate, the extracting including correcting a language error in the natural language input and a part-of-speech tag error resulting from the language error; generating a database query based at least in part on the extracted semantic intent by the computing device, the generating including using the semantic entity or semantic representation to at least partially fill in a logical form template that defines a structure of the database query, the at least partially filled in logical form including; a pre-condition slot containing a first attribute that controls grouping of results of the database query; a post-condition slot containing a second attribute that constrains an order of the results of the database query; and a slot populated with an indicator of a statistical function selected based on the natural language input from a plurality of available statistical functions; and producing an answer to the question included in the natural language input by executing the database query against a database structured in accordance with the structure of the database query, the answer providing user assistance by responding to the question. - View Dependent Claims (17, 18, 19, 20)
-
Specification