GithubHelp home page GithubHelp logo

llm-content-mod's Introduction

llm-content-mod

Datasets and code for studying LLMs and Content Moderation

Datasets

  • The data/ folder contains all the subreddit specific data and toxic content data we curated to conduct our experiments
  • rule_moderation/ contains balanced datasets for each subreddit we studied. In particular:
    • subreddit_rules_w_description.jsonl contains a description and the rule-string we used for prompting each LLM
    • subreddit_balanced_datasets contains the actual balanced data files for each subreddit
  • toxic_content/ contains 10k_balanced_sample.jsonl, which is the data file with balanced toxic/nontoxic comments curated for our toxic content evaluation

Scripts

  • The scripts/ folder has all the base scripts we used to run our data through various commercial models.
  • scripts/is_toxic_*.py has all the scripts for toxic content detection
  • scripts/rule_based_moderation.py has the code for evaluating rule-based decisions per subreddit

llm-content-mod's People

Contributors

kumarde avatar

Watchers

 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.