Git Product home page Git Product logo

hate_speech's Introduction

Multilingual Fairness LREC

Data and code repository to evaluate multilingual fairness for hate speech detection for the LREC 2020 paper Multilingual Twitter Corpus and Baselines for Evaluating Demographic Bias in Hate Speech Recognition.

Data

  • Languages
    • English
    • Italian
    • Polish
    • Portugese
    • Spanish
    • Hinglish (to be added)
    • More languages in the future
  1. Short Description This multilingual dataset convers five languages for the hate speech detection task. Each dataset contains five author level demographic attributes: age, country, gender and race/ethinicity. We binarize each attribute for simplifying analysis and experiments below. For the non-binary attribute labels, we are open to share for research community upon request.
  • Age: if larger than the median value within each language data;
  • Country: first identify a country value has the major users, then binarize the attribute if user is from the country value;
  • Gender: male or female;
  • Race/Ethnicity: we first extract the attributes using four American major race groups, White, Black, Hispanic/Latino and Asian; we then tentatively binarize the race label into white and other groups.

How to Run

  • Install the following:;

    • Install conda;
    • Install Python packages:
      • With conda: conda env create -f environment.yml, then conda activate lrec2020
      • With pip: pip install -r requirements.txt.
  • Process pre-trained word embeddings;

  • Run Python scripts

    • Run analysis on the dataset:
      • cd ./analysis
      • python predictability.py
    • Preprocess the data: python preprocess.py
    • Test logistic regression classifier: python lr.py;
    • Test RNN classifier: python rnn.py;
    • Test CNN classifier: python cnn.py;
    • Test BERT classifier: python bert.py.

Contact

To request non-binary demographic labels or if you have any issues, please email [email protected].

Citation

If you use our corpus in your publication, please kindly cite this paper:

@inproceedings{huang2020-lrec,
    title = "Multilingual Twitter Corpus and Baselines for Evaluating Demographic Bias in Hate Speech Recognition",
    author = "Huang, Xiaolei  and
      Linzi, Xing  and
      Dernoncourt, Franck  and
      Paul, Michael J.",
    booktitle = "Proceedings of the Twelveth International Conference on Language Resources and Evaluation ({LREC} 2020)",
    month = may,
    year = "2020",
    address = "Marseille, France",
    publisher = "European Language Resources Association (ELRA)",
    url = "https://arxiv.org/pdf/2002.10361.pdf",
    abstract = "Existing research on fairness evaluation of document classification models mainly uses synthetic monolingual data without ground truth for author demographic attributes. In this work, we assemble and publish a multilingual Twitter corpus for the task of hate speech detection with inferred four author demographic factors: age, country, gender and race/ethnicity. The corpus covers five languages: English, Italian, Polish, Portuguese and Spanish. We evaluate the inferred demographic labels with a crowdsourcing platform, Figure Eight. To examine factors that can cause biases, we take an empirical analysis of demographic predictability on the English corpus. We measure the performance of four popular document classifiers and evaluate the fairness and bias of the baseline classifiers on the author-level demographic attributes.",
}

hate_speech's People

Contributors

xiaoleihuang avatar franck-dernoncourt avatar

Stargazers

SachinR avatar

Watchers

SachinR avatar paper2code - bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.