Enabling autonomous agents to discriminate between questions and requests
First Claim
Patent Images
1. A system for classifying text as a question or a request, comprising:
- a linguistic engine configured to;
access an utterance comprising at least one word;
generate a parse tree for the utterance, wherein the parse tree comprises at least one terminal node comprising a word type, wherein each terminal node represents a word or phrase of the utterance and wherein the parse tree identifies syntactic information of the utterance; and
apply, to the parse tree, one or more linguistic templates comprising one or more word types; and
a rule engine configured to generate one or more match results obtained from the linguistic engine and determine a classification of the text by applying rules comprising;
(i) responsive to determining, from the parse tree, that the utterance comprises a first person pronoun followed by a noun, classifying the utterance as a request;
(ii) responsive to determining, from the parse tree, that the utterance comprises an imperative verb as a first word of the utterance by identifying a verb that is (a) in a present tense or in an active voice and (b) neither modal, mental, or a form of the verb “
to be,”
classifying the utterance as a request;
(iii) responsive to identifying, in the utterance, one or more predefined request keywords, classifying the utterance as a request;
(iv) responsive to identifying, in the utterance, a mental verb, classifying the utterance as a question; and
(v) responsive to determining that the utterance comprises a question intent prefix in a first word position, classifying the utterance as a question,wherein the system is further configured, based on the classification as the question or the request, to send a message to a user device or adjust a configuration of an external device.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems, devices, and methods of the present invention relate to text classification. A text classification system accesses an utterance of text. The utterance includes at least one word. The text classification system generates a parse tree for the utterance. The parse tree includes at least one terminal node with a word type. The terminal node represents a word of the utterance. The text classification system applies one or more rules to the text. The text classification system then classifies the utterance as a question or a request for an autonomous agent to perform an action.
64 Citations
18 Claims
-
1. A system for classifying text as a question or a request, comprising:
-
a linguistic engine configured to; access an utterance comprising at least one word; generate a parse tree for the utterance, wherein the parse tree comprises at least one terminal node comprising a word type, wherein each terminal node represents a word or phrase of the utterance and wherein the parse tree identifies syntactic information of the utterance; and apply, to the parse tree, one or more linguistic templates comprising one or more word types; and a rule engine configured to generate one or more match results obtained from the linguistic engine and determine a classification of the text by applying rules comprising; (i) responsive to determining, from the parse tree, that the utterance comprises a first person pronoun followed by a noun, classifying the utterance as a request; (ii) responsive to determining, from the parse tree, that the utterance comprises an imperative verb as a first word of the utterance by identifying a verb that is (a) in a present tense or in an active voice and (b) neither modal, mental, or a form of the verb “
to be,”
classifying the utterance as a request;(iii) responsive to identifying, in the utterance, one or more predefined request keywords, classifying the utterance as a request; (iv) responsive to identifying, in the utterance, a mental verb, classifying the utterance as a question; and (v) responsive to determining that the utterance comprises a question intent prefix in a first word position, classifying the utterance as a question, wherein the system is further configured, based on the classification as the question or the request, to send a message to a user device or adjust a configuration of an external device. - View Dependent Claims (2, 3, 4, 5, 15, 17)
-
-
6. A method of using a classification model to classify utterances as questions or requests, the method comprising:
-
accessing an utterance, wherein the utterance comprises words; generating a parse tree for the utterance, wherein the parse tree comprises at least one terminal node comprising a word type representing a word or phrase of the utterance, and wherein the parse tree identifies syntactic information of the utterance; applying, to the parse tree, a classification model, that is trained to apply rules comprising; (i) responsive to determining, from the parse tree, that the utterance comprises a first person pronoun followed by a noun, classifying the utterance as a request; (ii) responsive to determining, from the parse tree, that the utterance comprises an imperative verb as a first word of the utterance by identifying a verb that is (a) in a present tense or in an active voice and (b) neither modal, mental, or a form of the verb “
to be,”
classifying the utterance as a request;(iii) responsive to identifying, in the utterance, one or more predefined request keywords, classifying the utterance as a request; (iv) responsive to identifying, in the utterance, a mental verb, classifying the utterance as a question; and (v) responsive to determining that the utterance comprises a question intent prefix in a first word position, classifying the utterance as a question; and receiving, from the classification model, a classification of the utterance, wherein the classification of the utterance identifies the utterance as (i) a question, (ii) a request, or (iii) unknown. - View Dependent Claims (7)
-
-
8. A method for classifying text as a question or a request, the method comprising:
-
accessing an utterance comprising at least one word; generating a parse tree for the utterance, wherein the parse tree comprises at least one terminal node comprising a word type, wherein each terminal node represents a word or phrase of the utterance and wherein the parse tree identifies syntactic information of the utterance; and applying, to the parse tree, one or more linguistic templates comprising one or more word types; and applying rules comprising; (i) responsive to determining, from the parse tree, that the utterance comprises a first person pronoun followed by a noun, classifying the utterance as a request; (ii) responsive to determining, from the parse tree, that the utterance comprises an imperative verb as a first word of the utterance, classifying the utterance as a request; (iii) responsive to identifying, in the utterance, one or more predefined request keywords, classifying the utterance as a request; (iv) responsive to identifying, in the utterance, a mental verb, classifying the utterance as a question; (v) responsive to determining that the utterance comprises a question intent prefix in a first word position, classifying the utterance as a question; and (vi) responsive to determining, from the parse tree, that the utterance comprises a first person pronoun and a mental verb, classifying the utterance as a request; and sending, based on the classification as the question or the request, a message to a user device or adjust a configuration of an external device. - View Dependent Claims (9, 10, 11, 12, 13, 14, 16, 18)
-
Specification