IDEAS home Printed from https://ideas.repec.org/a/taf/usppxx/v6y2019i1p80-86.html
   My bibliography  Save this article

Classifying Hate Speech Using a Two-Layer Model

Author

Listed:
  • Yiwen Tang
  • Nicole Dalzell

Abstract

Social media and other online sites are being increasingly scrutinized as platforms for cyberbullying and hate speech. Many machine learning algorithms, such as support vector machines, have been adopted to create classification tools to identify and potentially filter patterns of negative speech. While effective for prediction, these methodologies yield models that are difficult to interpret. In addition, many studies focus on classifying comments as either negative or neutral, rather than further separating negative comments into subcategories. To address both of these concerns, we introduce a two-stage model for classifying text. With this model, we illustrate the use of internal lexicons, collections of words generated from a pre-classified training dataset of comments that are specific to several subcategories of negative comments. In the first stage, a machine learning algorithm classifies each comment as negative or neutral, or more generally target or nontarget. The second stage of model building leverages the internal lexicons (called L2CLs) to create features specific to each subcategory. These features, along with others, are then used in a random forest model to classify the comments into the subcategories of interest. We demonstrate our approach using two sets of data. Supplementary materials for this article are available online.

Suggested Citation

  • Yiwen Tang & Nicole Dalzell, 2019. "Classifying Hate Speech Using a Two-Layer Model," Statistics and Public Policy, Taylor & Francis Journals, vol. 6(1), pages 80-86, January.
  • Handle: RePEc:taf:usppxx:v:6:y:2019:i:1:p:80-86
    DOI: 10.1080/2330443X.2019.1660285
    as

    Download full text from publisher

    File URL: http://hdl.handle.net/10.1080/2330443X.2019.1660285
    Download Restriction: Access to full text is restricted to subscribers.

    File URL: https://libkey.io/10.1080/2330443X.2019.1660285?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:taf:usppxx:v:6:y:2019:i:1:p:80-86. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Chris Longhurst (email available below). General contact details of provider: http://www.tandfonline.com/uspp .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.