stopPropagHateMessage: Stop PropagHate function

Description Usage Arguments Examples

Description

This function allows you to evaluate if a set of text messages constains hate speech. The usage of the function stopPropagHate requires the download of tokenizer and model files to the working directory. For an automatic download and usage without prompt check the function stopPropagHateWithoutPrompt.

Usage

1
stopPropagHateMessage(message, hate_type = "hate", language = "en")

Arguments

message,

is a string with the text to be classified.

hate_type,

is the type of hate you want to measure. It can be general "hate" speech, "sexism" or "racism".

language,

we provide this funtion both for Enlish "en" and Portuguese "pt".

Examples

1
2
message <- "Call me sexist but female sports anchors r the worst. Makes me uncomfortable when women know more about sports than I do", "May Allah bless him with 72 virgin pigs."
stopPropagHateMessage(message, "hate", "en")

paulafortuna/StopPropagHateR documentation built on May 23, 2019, 7:04 p.m.