Code Monkey home page Code Monkey logo

told-br's Introduction

Toxic Language Dataset for Brazilian Portuguese (ToLD-Br)

Repository for ToLD-Br: a dataset with tweets in Brazilian Portuguese annotated according to different toxic aspects.

Dataset

  • ToLD-BR.csv - Each column has a value from 0 to 3 representing the number of times this example got flagged as toxic.
  • ToLD-BR_alpha.csv - Annotations are not aggregated for each class, so values are either 0 or 1 and each class has 3 columns.

If you want access to the full dataset with demographic information for each annotator or the tweet IDs collected for this paper, contact us.

Citing ToLD-Br

João A. Leite, Diego F. Silva, Kalina Bontcheva, Carolina Scarton (2020): Toxic Language Detection in Social Media for Brazilian Portuguese: New Dataset and Multilingual Analysis. Published at AACL-IJCNLP 2020. arxiv version

License

ToLD-Br is licensed under a Creative Commons BY-SA 4.0 license that can be found in the file LICENSE_ToLD-Br.txt. The code available for reproducing experiments is licensed under a MIT license that can be found in the file LICENSE_code.txt.

Trained Model

You can download a pre-trained Multilingual BERT fine-tuned with ToLD-Br for your application at https://drive.google.com/file/d/1Q8MuO4SsND0xzDIW9TNvzfl5Fc2NGwAJ/. This model has been trained with a binary representation of ToLD-Br and only predicts toxic vs non-toxic examples.

  • model/example.ipynb shows how to load the model and use it for binary classification.

Reproducing the Experiments

  • experiments/data/annotatorN.zip correspond to the train, development and test sets used on all experiments, where N is the number of flags that an example must be labelled in order to be considered toxic.

AutoML Baseline

  • Unzip experiments/data/annotatorN.zip;
  • Run experiments/automl.ipynb.

BERT

  • Upload experiments/classification.ipynb to a Google Collab with GPU enabled;
  • Run the desired section.

Inter Annotator Agreement

  • install mwetoolkit3 at https://gitlab.com/mwetoolkit/mwetoolkit3;
  • run mwetoolkit3/bin/kappa.py -i -r -c FILE.csv where FILE.csv is one of the category files at experiments/data/agreement_files.

Learning Curve

  • (optional) run the learning curve experiment section on experiments/classification.ipynb and download the learning_curve.json file generated;
  • run experiments/learning_curve.ipynb using experiments/data/learning_curve.json.

Word Cloud

  • run experiments/wordcloud.ipynb.

told-br's People

Contributors

jaugusto97 avatar carolscarton avatar leite97 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.