GithubHelp home page GithubHelp logo

tar-content-moderation's Introduction

TAR on Social Media: A Framework for Online Content Moderation

This repository contains experiment code and framework of TAR reviewing process that facilitates continue human-in-the-loop content moderation.

Installation

Dependencies

VowpalWabbit is not included in the conda environment. Please refer to their installation guide for installing VwolpalWabbit to command line.

The following command creates and activates the conda environment for the experiment.

LIBACT_BUILD_VARIANCE_REDUCTION=0 conda env create --file environment.yml 
conda activate tarcm

Ingest dataset

Both Wikipedia Personal Attack dataset and AskFM Cyberbullying dataset need to be ingested before the experiments. This step parses the annotations and raw text to an unified format.

Wikipedia Personal Attack

AskFM Cyberbullying Dataset

  • Please contact the authors of paper Automatic detection of cyberbullying in social media text for data access.
  • Uncompress the dataset into a directory
  • Run python ingest_askfm.py --dataset {raw dataset directory} --output {output directory}. If needed, a flag --overwrite can be added for overwriting an existing output directory.

Experiments

Detailed arguments is provided in python tar_exp.py --help.

The following is an example of running 80 rounds of TAR review with a batch size of 100 on the Wikipedia Personal Attack dataset.

python tar_exp.py wiki-100x80 \
                  --topic_selection * --strategies uncertainty relevance \
                  --seed_size 2 --see_pos_ratio=0.5
                  --n_iter 80 --batch_size 100 \
                  --vw_loss_function logistic --vw_passes 1 \
                  --random_seed 123 \
                  --dataset_path ./wiki_ingested_data/ \
                  --X_file X_file.npz \
                  --output_path ./results \
                  --exp_name tar_content_moderation \
                  --worker 4

Reference

If you adapt scripts or code from this repository or find this related to your work, please kindly cite our paper.

@inproceedings{tar_on_social_media,
	title={TAR on Social Media: A Framework for Online Content Moderation},
	author={E. Yang and D. D. Lewis and O. Frieder},
	journal = {Proceddings of Design of Experimental Search & Information REtrieval Systems 2021 (DESIRES 2021)},
	year={2021}
}

tar-content-moderation's People

Contributors

eugene-yang avatar

Watchers

James Cloos avatar  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.