Chatbot providing a defeating reply
AssigneeOracle International Corporation
InventorBoris Galitsky
Life of this patent
Estimating the term…
Abstract
Techniques are disclosed for generating defeating textual replies. A computer-implemented method generates a first communicative discourse tree from an utterance and as second communicative discourse tree from a candidate answer derived from a search of keywords in the utterance. The method translates the first communicative discourse tree into a first logical formula from and the second communicative discourse tree into a second logical formula. The method determines that the first logical formula is a negation of the second logical formula. The method further provides the candidate answer to a user device responsive to the determining.
Claims20
A method for negating a claim an utterance, the method comprising:
- accessing, via a user device, a user utterance comprising elementary discourse units;
- generating, from the user utterance, a first discourse tree that represents rhetorical relationships between the elementary discourse units, wherein a discourse tree comprises a plurality of nodes, each nonterminal node representing a rhetorical relationship between two of the elementary discourse units, each terminal node of the nodes of the discourse tree being associated with one of the elementary discourse units;
- translating the first discourse tree into a first logical formula that includes a reason and a conclusion;
- and
- identifying topic keywords from the user utterance;
- accessing, based on the topic keywords, a candidate answer;
- generating, from the candidate answer, a second discourse tree;
- translating the second discourse tree into a second logical formula;
- determining that the first logical formula is a negation of the second logical formula, the determining comprising, iteratively, for a predefined number of iterations:
- creating a theorem by applying a set of argumentation rules to a set of axioms and the second logical formula;
- comparing the theorem to the first logical formula;
- and
- responsive to determining that the theorem is a negation of the first logical formula, identifying the first logical formula as a negation of the second logical formula;
- and
- responsive to the determining, providing the candidate answer to the user device, wherein the user device presents the candidate answer as a response to the user utterance.
A non-transitory computer-readable storage medium storing computer-executable program instructions, wherein when executed by a processing device, the program instructions cause the processing device to perform operations comprising:
- accessing, via a user device, a user utterance comprising elementary discourse units;
- generating, from the user utterance, a first discourse tree that represents rhetorical relationships between the elementary discourse units, wherein a discourse tree comprises a plurality of nodes, each nonterminal node representing a rhetorical relationship between two of the elementary discourse units, each terminal node of the nodes of the discourse tree being associated with one of the elementary discourse units;
- translating the first discourse tree into a first logical formula that includes a reason and a conclusion;
- and
- identifying topic keywords from the user utterance;
- accessing, based on the topic keywords, a candidate answer;
- generating, from the candidate answer, a second discourse tree;
- translating the second discourse tree into a second logical formula;
- determining that the first logical formula is a negation of the second logical formula, the determining comprising, iteratively, for a predefined number of iterations:
- creating a theorem by applying a set of argumentation rules to a set of axioms and the second logical formula;
- comparing the theorem to the first logical formula;
- and
- responsive to determining that the theorem is a negation of the first logical formula, identifying the first logical formula as a negation of the second logical formula;
- and
- responsive to the determining, providing the candidate answer to the user device, wherein the user device presents the candidate answer as a response to the user utterance.
A system comprising:
- a non-transitory computer-readable medium storing computer-executable program instructions;
- and
- a processing device communicatively coupled to the non-transitory computer-readable medium for executing the computer-executable program instructions, wherein executing the computer-executable program instructions configures the processing device to perform operations comprising:
- accessing, via a user device, a user utterance comprising elementary discourse units;
- generating, from the user utterance, a first discourse tree that represents rhetorical relationships between the elementary discourse units, wherein a discourse tree comprises a plurality of nodes, each nonterminal node representing a rhetorical relationship between two of the elementary discourse units, each terminal node of the nodes of the discourse tree being associated with one of the elementary discourse units;
- translating the first discourse tree into a first logical formula that includes a reason and a conclusion;
- and
- identifying topic keywords from the user utterance;
- accessing, based on the topic keywords, a candidate answer;
- generating, from the candidate answer, a second discourse tree;
- translating the second discourse tree into a second logical formula;
- determining that the first logical formula is a negation of the second logical formula, the determining comprising, iteratively, for a predefined number of iterations:
- creating a theorem by applying a set of argumentation rules to a set of axioms and the second logical formula;
- comparing the theorem to the first logical formula;
- and
- responsive to determining that the theorem is a negation of the first logical formula, identifying the first logical formula as a negation of the second logical formula;
- and
- responsive to the determining, providing the candidate answer to the user device, wherein the user device presents the candidate answer as a response to the user utterance.
Dependencies are inferred from the claim text.