You are on page 1of 15

A PIPELINE FOR COUNTER SPEECH GENERATION

AGAINST ONLINE HATE SPEECH

Batch No : 31
Project Guide : SMT. B. TEJA SREE

TEAM MEMBERS:
Bhanu Prasanna Meka (19B91A1224)
Gandikota Durga Naga Sri (19B91A1251)
Chitineedi Vasavi Naga Sai Priya (19B91A1240)
Gottumukkala Jahnavi (19B91A1260)

1
CONTENTS

1. ABSTRACT
2. INTRODUCTION
3. LITERATURE SURVEY
4. PROBLEM STATEMENT
5. EXISTING SYSTEM
6. PROPOSED SYSTEM
7. BLOCK DIAGRAM
8. MODULES USED
9. EXPECTED OUTPUT
10. ADVANTAGES
11. CONCLUSION

2
ABSTRACT

With the high prevalence of offensive language against minorities in social media, counter-hate

speeches (CHS) generation is considered an automatic way of tackling this challenge. The CHS

generation is based on the optimistic assumption that any attempt to intervene the hate speech in

social media can play a positive role in this context. Beyond that, previous works ignored the

investigation of the sequence of comments before and after the CHS. Here, we proposed a three-

module pipeline approach that include a generative model and BERT model using Natural

Language Generation.

3
INTRODUCTION:

 Hate speech is any form of expression through which speakers intend to vilify, humiliate, or incite

hatred against a group or a class of persons based on some characteristics, including race, religion,

skin color, sexual identity, gender identity, ethnicity, disability, or national origin.

 Its ever-growing increase on the Internet makes it a problem of significant societal concern

effective countermeasures call for not blocking freedom of speech by means of censorship or active

moderation.

 A very promising countermeasure is counter speech—a response that provides non-negative

feedback through fact bound arguments and broader perspectives to mitigate hate speech and

fostering a more harmonious conversation in social platforms .


4
LITERATURE SURVEY

 Learning Phrase Representations Using RNN ( Recurrent Neural Network ) Encoder–decoder


For Statistical Machine Translation

 Kyunghyun Cho, Bart van Merrienboer, Caglar Gul- ¨ cehre, Dzmitry Bahdanau, Fethi
Bougares, Holger Schwenk, and Yoshua Bengio. 2014.

 In this paper, they proposed a novel neural network model called RNN Encoder-Decoder that
consists of two recurrent neural networks (RNN). One RNN encodes a sequence of symbols
into a fixed-length vector representation, and the other decodes the representation into another
sequence of symbols. They trained to maximize the conditional probability of a target
sequence. Qualitatively, they showed that the proposed model learns a semantically and
syntactically meaningful representation of linguistic phrase.

5
LITERATURE SURVEY

 Analyzing the hate and counter speech accounts on twitter.

 Binny Mathew, Navish Kumar, Pawan Goyal, Animesh Mukherjee, et al. 2018.

 In this paper, they analysed hate speech and the corresponding counters (aka counter-speech)

on Twitter. They performed several lexical, linguistic and psycholinguistic analysis on these

user accounts and obverse that counter speakers employ several strategies depending on the

target community. They also built a supervised model for classifying the hateful and counter-

speech accounts on Twitter and obtain an F-score of 0.77. They made their dataset public to

help advance the research on hate speech.

6
PROBLEM STATEMENT

As we've initially indicated the current state, the severity of hate speech on online has

become a significant social concern. To effectively combat this issue, individual liberty

must not be restricted by censorship or active moderation. By considering the future

solution to this, in the proposed solution, we tackle the problem from an entirely novel

angle by proposing a three-module pipeline approach.

7
EXISTING SYSTEM:

• In the existing solution, there is only a message

generated counter to the hate speech on online like

“Please refrain from using such offensive language”.

• This model introduced here include the state-of-the-art

natural language processing (NLP) technique that is

used in automatic detection of the hate speech on

OSNs, such as dictionaries, bag-of-words, N-gram etc. Fig 1: An illustrative example for existing solution

and generate counter message regarded as warn.


8
PROPOSED SYSTEM:

• An input data of hate speech will be given to the system.

• First, the Candidate Generation module generates a large number of diverse response
candidates using a generative model RNN(Recurrent Neural Network) based variational
autoencoder that incorporates the global distributed latent representations of all sentences
to generate candidates.

• Second, the Candidate Pruning module prunes the ungrammatical candidates from the
candidate pool using BERT(Bidirectional Encoder Representations from Transformer)
Model to best capture both the syntactic and the contextual information.

• Last, from the pruned counter speech candidate pool, the Response Selection module
selects the most relevant counter speech using Cosine Similarity for a given hate speech
instance by a novel retrieval-based response selection method.

• Hence, the Counter Speech is Generated. 9


BLOCK DIAGRAM :

10
MODULES USED
EXPECTED OUTPUT :

12
ADVANTAGES :

- Can reduce the hate speech on social media.


- Empirical evaluation on three datasets demonstrates that this
model is effective in producing diverse and relevant counter-
speech .

13
CONCLUSION :

The proposed solution is intended to function as a third voice, educating individuals and
preserving society without restricting the fundamental rights regarding freedom of speech.
However, the positive impact is not guaranteed, as several earlier research have demonstrated. In
order to do so, we provide a comprehensive review of related works and categorize them based on
different factors, including impact, methodology, data source, etc Counter-hate speech (CHS)
generation is considered an automatic way of tackling this challenge.

The CHS generation is based on the optimistic assumption that any attempt to intervene in hate
speech on social media can play a positive role in this context. We assume that the empirical
evaluation on three datasets demonstrates that our proposed model will be effective enough for
producing diverse and relevant counter-speech.
14
T HANK Y OU...

15

You might also like