- Patent Number:
10936,817
- Appl. No:
16/265232
- Application Filed:
February 01, 2019
- نبذة مختصرة :
Additional background information is used with a trained neural network based model to help classify whether text is a subtly and/or ambiguously offensive. This additional background information can come from different sources such as the article on which the comment was made, world knowledge about the external entities (e.g., Wikipedia, Urban Dictionary), phrases referenced in the text being classified, and, the context of the previous comments/text in the thread. The background information is retrieved based on key entities (e.g., people, places things) and/or key phrases in the comment. Sentence matrix encodings are built for both the comment and the background information. The background information encoding is used to condition the comment encoding. The background information encoding, and the conditioned comment encoding are fed to a trained multi-level perceptron to classify the comment as hate speech or non-hate speech.
- Inventors:
Conduent Business Services, LLC (Dallas, TX, US)
- Assignees:
CONDUENT BUSINESS SERVICES, LLC (Florham Park, NJ, US)
- Claim:
1. A method, comprising: providing a neural network model which has been trained to identify hate speech for an input text sequence, the input text sequence extracted from a comment on a website, the neural network model comprising: a first encoder that generates a first representation based on the input text sequence, the first encoder including a first embedding module that generates a sentence matrix based on the input text sequence, the first encoder including a first neural network encoder that generates the first representation based on the sentence matrix; a second encoder that generates a second representation based on background information, the background information extracted from a source external to the comment on the website, the second encoder including a second embedding module that generates a background information matrix based on the background information, the second encoder including a second neural network encoder that generates the second representation based on the background information matrix; a cross-text interaction module that generates a third representation based on the first representation conditioned on the second representation; and, a neural network classifier that receives the second representation and the third representation; receiving the input text sequence containing a first sequence of words; receiving the background information containing a second sequence of words; with a processor, determining a classification for the input text sequence using the neural network model; and, outputting information based on the classification.
- Claim:
2. The method of claim 1 , wherein receiving the background information is performed by a background information retriever module.
- Claim:
3. The method of claim 1 , wherein the input text sequence comprises a comment posted in association with a news article.
- Claim:
4. The method of claim 3 , wherein the background information comprises a summary associated with the news article.
- Claim:
5. The method of claim 3 , wherein the background information comprises at least one previous comment posted in association with the news article.
- Claim:
6. The method of claim 3 , wherein the comment is posted to a first website and the background information comprises information retrieved from a second website external to the first website, the information retrieved from the second website being associated with an entity referenced in the comment by the second website.
- Claim:
7. The method of claim 3 , wherein the comment is posted to a first website and the background information comprises information retrieved from a second website external to the first website, the information retrieved from the second website being associated, by the second website, with a key phrase extracted from the comment.
- Claim:
8. A method, comprising: receiving an input text sequence containing a first sequence of words, the input text sequence extracted from a comment on a website; receiving background information containing a second sequence of words, the background information extracted from a source external to the comment on the website; generating a sentence matrix based on the first sequence of words; encoding the sentence matrix using a recurrent neural network based encoder to generate a first representation of the first sequence of words; generating a background information matrix based on the second sequence of words; encoding the background information matrix using the recurrent neural network based encoder to generate a second representation of the second sequence of words; generating a third representation by conditioning the first representation using the second representation; and, generating an output classification by inputting the third representation and the second representation to a trained multilevel perceptron classifier.
- Claim:
9. The method of claim 8 , further comprising: outputting information based on the output classification.
- Claim:
10. The method of claim 8 , wherein conditioning the first representation using the second representation captures cross-text interactions to generate the third representation.
- Claim:
11. The method of claim 8 , wherein the sentence matrix is generated using word embedding.
- Claim:
12. The method of claim 8 wherein the background information matrix is generated using word embedding.
- Claim:
13. The method of claim 8 wherein the sentence matrix and the background information matrix are generated using word embedding.
- Claim:
14. The method of claim 8 wherein the recurrent neural network uses long short-term memory units as encoders.
- Claim:
15. A system, comprising: memory that stores a neural network model which has been trained to identify hate speech for an input text sequence, the input text sequence extracted from a comment on a website, the neural network model comprising: a first encoder that generates a first representation based on the input text sequence, the first encoder including a first embedding module that generates a sentence matrix based on the input text sequence, the first encoder including a first neural network encoder that generates the first representation based on the sentence matrix; a second encoder that generates a second representation based on background information, the background information extracted from a source external to the comment on the website, the second encoder including a second embedding module that generates a background information matrix based on the background information, the second encoder including a second neural network encoder that generates the second representation based on the background information matrix; a cross-text interaction module that generates a third representation based on the first representation conditioned on the second representation; and, a neural network classifier that receives the second representation and the third representation; an input component that receives the input text sequence; a background information component that receives the background information; a processor that determines a classification for the input text sequence using the neural network model; and, an output component that outputs information based on the classification.
- Claim:
16. The system of claim 15 , wherein the input text sequence comprises a comment posted in association with a news article.
- Claim:
17. The system of claim 16 , wherein the background information comprises a summary associated with the news article.
- Claim:
18. The system of claim 17 , wherein the background information comprises at least one previous comment posted in association with the news article.
- Claim:
19. The system of claim 16 , wherein the comment is posted to a first website and the background information comprises information retrieved from a second website external to first website, the information retrieved from the second website being associated with an entity referenced in the comment by the second website.
- Claim:
20. The system of claim 16 , wherein the comment is posted to a first website and the background information comprises information retrieved from a second website external to first website, the information retrieved from the second website being associated, by the second website, with a key phrase extracted from the comment.
- Patent References Cited:
4864502 September 1989 Kucera
6003003 December 1999 Asghar
6044343 March 2000 Cong
9715496 July 2017 Sapoznik
9842105 December 2017 Bellegarda
10346524 July 2019 Zheng
2016/0162576 June 2016 Arino de la Rubia
2017/0091168 March 2017 Bellegarda
2017/0193545 July 2017 Zhou
2017/0200077 July 2017 Weston
2018/0150739 May 2018 Wu
2018/0336183 November 2018 Lee
2019/0005090 January 2019 Zhang
2019/0236139 August 2019 DeFelice
2019/0244603 August 2019 Angkititrakul
2019/0286700 September 2019 Jayaraman
2019/0355346 November 2019 Bellegarda
2020/0005046 January 2020 Attorre
2020/0073902 March 2020 Milazzo
2020/0089652 March 2020 Jayaraman
2020/0089765 March 2020 Jayaraman
2020/0142999 May 2020 Pedersen
2020/0160196 May 2020 Ramakrishnan
- Primary Examiner:
Nguyen, Khai N.
- Attorney, Agent or Firm:
Jones Robb, PLLC
- الرقم المعرف:
edspgr.10936817
No Comments.