IP Library › Granted Patent US 11,580,298
Granted Patent B2
US 11,580,298 · App. 17/084,116 · Granted Feb 14, 2023

Detecting hypocrisy in text

Inventor: Boris Galitsky (San Jose, CA)
Assignee: Oracle International Corporation
G06F40/211G06F16/9027G06F16/953G06F40/30G06N20/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,580,298
App. No.
17/084,116
Filed
Oct 29, 2020
Granted
Feb 14, 2023
Kind
B2
Art Unit
2658
USPC
704/9
Abstract

Techniques are disclosed for identifying hypocrisy in text. A computer system creates, from fragments of text, a syntactic tree that represents syntactic relationships between words in the fragments. The system identifies, in the syntactic tree, a first entity and a second entity. The system further determines that the first entity is opposite to the second entity. The system further determines a first sentiment score for a first fragment comprising the first entity and a second sentiment score for a second fragment comprising the second entity. The system, responsive to determining that the first sentiment score and the second sentiment score indicate opposite emotions, identifies the text as comprising hypocrisy and providing the text to an external device.

Claims (53)

1. A method of detecting hypocrisy in text, the method comprising:

accessing text comprising fragments;

creating, from the fragments, a syntactic tree that represents syntactic relationships between words in the fragments;

identifying, in the syntactic tree, a first entity and a second entity;

determining that the first entity is opposite to the second entity, the determining comprising:

accessing an ontology that comprises a plurality of entries, wherein each entry of the plurality of entries comprises a noun and one or more synonyms of the noun; and

responsive to identifying, in the ontology, a particular entry that comprises a synonym matching the first entity, substituting the noun of the particular entry as the first entity;

determining a first sentiment score for a first fragment comprising the first entity and a second sentiment score for a second fragment comprising the second entity, wherein each sentiment score indicates an emotion indicated by the respective entity, wherein determining the sentiment score for each fragment comprises:

determining a keyword sentiment score for each keyword of a plurality of keywords in the fragment, wherein the keyword sentiment score indicates whether the keyword signifies positive or negative sentiment;

determining, from the plurality of keywords, an average keyword sentiment score; and

identifying the average keyword sentiment score as the sentiment score; and

responsive to determining that the first sentiment score and the second sentiment score indicate opposite emotions, identifying the text as comprising hypocrisy and providing the text to an external device.

2. The method of claim 1 , further comprising, for each entry:

providing the respective entity to a search engine;

receiving, from the search engine, an additional entity that is a synonym of the entity; and

adding the additional entity to a synonym in the respective entry.

3. The method of claim 1 , further comprising providing one or more of the first entity and the second entity to the external device.

4. 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 text comprising fragments;

creating, from the fragments, a syntactic tree that represents syntactic relationships between words in the fragments;

identifying, in the syntactic tree, a first entity and a second entity;

determining that the first entity is opposite to the second entity, the determining comprising:

accessing an ontology that comprises a plurality of entries, wherein each entry of the plurality of entries comprises a noun and one or more synonyms of the noun; and

responsive to identifying, in the ontology, a particular entry that comprises a synonym matching the first entity, substituting the noun of the particular entry as the first entity;

determining a first sentiment score for a first fragment comprising the first entity and a second sentiment score for a second fragment comprising the second entity, wherein each sentiment score indicates an emotion indicated by the respective entity, wherein determining the sentiment score for each fragment comprises:

determining a keyword sentiment score for each keyword of a plurality of keywords in the fragment, wherein the keyword sentiment score indicates whether the keyword signifies positive or negative sentiment;

determining, from the plurality of keywords, an average keyword sentiment score; and

identifying the average keyword sentiment score as the sentiment score; and

responsive to determining that the first sentiment score and the second sentiment score indicate opposite emotions, identifying the text as comprising hypocrisy and providing the text to an external device.

5. The system of claim 4 , wherein the operations further comprise, for each entry:

providing the respective entity to a search engine;

receiving, from the search engine, an additional entity that is a synonym of the entity; and

adding the additional entity to a synonym in the respective entry.

6. The system of claim 4 , the operations further comprising providing one or more of the first entity and the second entity to the external device.

7. 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 text comprising fragments;

creating, from the fragments, a syntactic tree that represents syntactic relationships between words in the fragments;

identifying, in the syntactic tree, a first entity and a second entity;

determining that the first entity is opposite to the second entity, the determining comprising:

accessing an ontology that comprises a plurality of entries, wherein each entry of the plurality of entries comprises a noun and one or more synonyms of the noun; and

responsive to identifying, in the ontology, a particular entry that comprises a synonym matching the first entity, substituting the noun of the particular entry as the first entity;

determining a first sentiment score for a first fragment comprising the first entity and a second sentiment score for a second fragment comprising the second entity, wherein each sentiment score indicates an emotion indicated by the respective entity, wherein determining the sentiment score for each fragment comprises:

determining a keyword sentiment score for each keyword of a plurality of keywords in the fragment, wherein the keyword sentiment score indicates whether the keyword signifies positive or negative sentiment;

determining, from the plurality of keywords, an average keyword sentiment score; and

identifying the average keyword sentiment score as the sentiment score; and

responsive to determining that the first sentiment score and the second sentiment score indicate opposite emotions, identifying the text as comprising hypocrisy and providing the text to an external device.

8. The non-transitory computer-readable storage medium of claim 7 , wherein when executed by the processing device, the program instructions cause the processing device to perform operations comprising, for each entry:

providing the respective entity to a search engine;

receiving, from the search engine, an additional entity that is a synonym of the entity; and

adding the additional entity to a synonym in the respective entry.

9. The non-transitory computer-readable storage medium of claim 7 , wherein when executed by the processing device, the program instructions cause the processing device to perform operations comprising providing one or more of the first entity and the second entity to the external device.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 2, 2020
From: GALITSKY, BORIS
To: ORACLE INTERNATIONAL CORPORATION
Reel/Frame 054246/0099 →
Continuity (2)
Provisional Application 62935328 · Nov 14, 2019
Related Publication 20210150140A1 · May 20, 2021
Cited By (1)
US 12,530,531