Giter Club home page Giter Club logo

toxiscope's Introduction

Toxic Language Detection in Workplace Communications

This is the repo for the dataset for detecting toxicity in workplace communications. This work has been published in Findings of EMNLP 2021. The link to the paper can be found here: Say β€˜YES’ to Positivity: Detecting Toxic Language in Workplace Communications

Using the code

Installing the dependencies

To run the code, please install the packages from requirements.txt using the command: pip install -r requirements.txt

Dataset

We used Avocado corpus to label toxic instances in this work. Avocado corpus is distributed under LDC license. We have provided the email id, span of text (start and end index columns) from the email body and the corresponding label. A tsv file created after parsing the corpus for provided email id body text in data/avocado folder can be used for training models. Please note that the text column of email body parsed from the corpus should be named as comment.

Running baselines

To run the baselines, run python main.py

All the hyper-parameters and user options can be modified in args.json.

Citation

If you find our paper useful, please cite the following:

@inproceedings{bhat-etal-2021-say-yes,
    title = "Say {`}{YES}{'} to Positivity: Detecting Toxic Language in Workplace Communications",
    author = "Bhat, Meghana Moorthy  and
      Hosseini, Saghar  and
      Awadallah, Ahmed Hassan  and
      Bennett, Paul  and
      Li, Weisheng",
    booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2021",
    month = nov,
    year = "2021",
    address = "Punta Cana, Dominican Republic",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.findings-emnlp.173",
    pages = "2017--2029",
} 

Contact

For questions, please contact Meghana Bhat.

toxiscope's People

Contributors

meghu2791 avatar microsoft-github-policy-service[bot] avatar saghar-hosseini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

toxiscope's Issues

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.