Toxicity classifier demo

Contents

The demo shows how to use predictions produced by the Toxicity classifier.

Setup

cd into the demos folder:

cd toxicity/demos

Install dependencies and prepare the build directory:

yarn

To watch files for changes, and launch a dev server:

yarn watch

If you are developing toxicity locally, and want to test the changes in the demos

cd into the toxicity folder:

cd toxicity

Install dependencies:

yarn

Build and publish toxicity locally:

yarn publish-local

Cd into the demos and install dependencies:

cd demos
yarn

Link the local toxicity to the demos:

yarn link-local

Start the dev demo server:

yarn watch

To get future updates from the toxicity source code:

# cd up into the toxicity directory
cd ../
yarn publish-local