IP Library › Granted Patent US 10,719,665
Granted Patent B2
US 10,719,665 · App. 16/411,674 · Granted Jul 21, 2020

Unsupervised neural based hybrid model for sentiment analysis of web/mobile application using public data sources

Inventors: Ankur Tagra (Bangalore, IN); Rajat Verma (Bangalore, IN); Sudarshan Narayanan (Bangalore, IN)
G06F40/30G06F40/117G06F40/14G06F40/284G06N3/088
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 10,719,665
App. No.
16/411,674
Granted
Jul 21, 2020
Kind
B2
Abstract

Machine training for determining sentiments in social network communications. A text document is extracted from a web site and tokenized into tokens. The tokens are input to a word to vector conversion model to generate word vectors. A term frequency inverse document frequency (TF-IDF) algorithm converts the word vectors to sentence vectors. A randomly selected subset the sentence vectors are tagged and used to train a classifier. The classifier takes a sentence vector and predicts a sentiment associated with the sentence vector. Predicted sentiment associated with each of the sentence vectors may be combined to generate a sentiment associated with the text document.

Claims (36)

1. A machine trained method of determining sentiments in social network communications, the method executed by at least one computer processor, the method comprising:

extracting a text document from a web site;

generating word vectors representing words in the text document by running a word to vector conversion model, a word vector representing a corresponding word in n different dimensions;

inputting the word vectors to a term frequency inverse document frequency (TF-IDF) algorithm to generate sentence vectors, a sentence vector of a corresponding sentence generated from word vectors corresponding to words appearing in the corresponding sentence;

running a classifier trained to predict a sentiment given an input sentence vector, with the sentence vectors as input to predict a sentiment associated with each of the sentence vectors; and

combining the predicted sentiment associated with said each of the sentence vectors to generate a sentiment associated with the text document.

2. The method of claim 1 , wherein the extracting includes at least extracting a plurality of text documents from a plurality of web sites, and the generating, the inputting of the word vectors, the running and the combining are performed for each of the plurality of text documents.

3. The method of claim 2 , the method further comprising mapping said each of the plurality of text documents to at least one service provided by a service provider, and combining sentiments of the plurality of text documents that mapped to a service to determine a service sentiment associated with the service.

4. The method of claim 3 , wherein the mapping further comprises partitioning the text document into a plurality of paragraphs, and identifying a number of paragraphs in which a word associated with the service appears, and responsive to determining that a number of paragraphs divided by a total number of paragraphs in the text document is below a threshold, determining that the text document is irrelevant to the service.

5. The method of claim 3 , wherein the service sentiment indicates at least one of positive, neutral and negative.

6. The method of claim 1 , wherein the word to vector conversion model is trained based on input text corpus and a parameter that specifies a number of dimensions.

7. A system comprising:

a hardware processor;

the hardware processor operatively coupled with a memory device;

the hardware processor operable to perform at least:

extracting a text document from a web site;

generating word vectors representing words in the text document by running a word to vector conversion model, a word vector representing a corresponding word in n different dimensions;

inputting the word vectors to a term frequency inverse document frequency (TF-IDF) algorithm to generate sentence vectors, a sentence vector of a corresponding sentence generated from word vectors corresponding to words appearing in the corresponding sentence;

running a classifier trained to predict a sentiment given an input sentence vector, with the sentence vectors as input to predict a sentiment associated with each of the sentence vectors; and

combining the predicted sentiment associated with said each of the sentence vectors to generate a sentiment associated with the text document.

8. The system of claim 7 , wherein the extracting includes at least extracting a plurality of text documents from a plurality of web sites, and the generating, the inputting of the word vectors, the running and the combining are performed for each of the plurality of text documents.

9. The system of claim 8 , the method further comprising mapping said each of the plurality of text documents to at least one service provided by a service provider, and combining sentiments of the plurality of text documents that mapped to a service to determine a service sentiment associated with the service.

10. The system of claim 9 , wherein the mapping further comprises partitioning the text document into a plurality of paragraphs, and identifying a number of paragraphs in which a word associated with the service appears, and responsive to determining that a number of paragraphs divided by a total number of paragraphs in the text document is below a threshold, determining that the text document is irrelevant to the service.

11. The system of claim 9 , wherein the service sentiment indicates at least one of positive, neutral and negative.

12. The system of claim 7 , wherein the word to vector conversion model is trained based on input text corpus and a parameter that specifies a number of dimensions.

13. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a device to cause the device to:

extract a text document from a web site;

generate word vectors representing words in the text document by running a word to vector conversion model, a word vector representing a corresponding word in n different dimensions;

input the word vectors to a term frequency inverse document frequency (TF-IDF) algorithm to generate sentence vectors, a sentence vector of a corresponding sentence generated from word vectors corresponding to words appearing in the corresponding sentence;

run a classifier trained to predict a sentiment given an input sentence vector, with the sentence vectors as input to predict a sentiment associated with each of the sentence vectors; and

combine the predicted sentiment associated with said each of the sentence vectors to generate a sentiment associated with the text document.

14. The computer program product of claim 13 , wherein the device is caused to extract a plurality of text documents from a plurality of web sites, and perform the generating, the inputting of the word vectors, the running and the combining for each of the plurality of text documents.

15. The computer program product of claim 14 , wherein the device is further caused to map said each of the plurality of text documents to at least one service provided by a service provider, and combine sentiments of the plurality of text documents that mapped to a service to determine a service sentiment associated with the service.

16. The computer program product of claim 15 , wherein the device is further caused to partition the text document into a plurality of paragraphs, and identify a number of paragraphs in which a word associated with the service appears, and responsive to determining that a number of paragraphs divided by a total number of paragraphs in the text document is below a threshold, determine that the text document is irrelevant to the service.

17. The computer program product of claim 15 , wherein the service sentiment indicates at least one of positive, neutral and negative.

18. The computer program product of claim 13 , wherein the word to vector conversion model is trained based on input text corpus and a parameter that specifies a number of dimensions.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 14, 2019
From: TAGRA, ANKUR; VERMA, RAJAT; NARAYANAN, SUDARSHAN
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 049178/0820 →
Continuity (2)
Continuation 15849946 · Dec 21, 2017
Related Publication 20190266245A1 · Aug 29, 2019