junming-qiu's picture
updated milestone number
b06efd6
metadata
title: Toxic Tweets Milestone 3
emoji: 🐢
colorFrom: blue
colorTo: red
sdk: streamlit
sdk_version: 1.17.0
app_file: app.py
pinned: false

Toxic-Tweets

Milestone Submissions

  1. Milestone 1: Setup Instructions
  2. Milestone 2: Hugging Face Space: Hugging Face Milestone 2 Demo
  3. Milestone 3: Fine Tuned Toxic Comment model: Hugging Face Milestone 3 Demo

Motivation

The internet has been converted from a tool offering unprecedented utility to mankind to a tool that can can destabilize societies and ven cause individuals to take their own lives.

Discussing things you care about can be difficult. The threat of abuse and harassment online means that many people stop expressing themselves and give up on seeking different opinions. Platforms struggle to effectively facilitate conversations, leading many communities to limit or completely shut down user comments.

The Conversation AI team, a research initiative founded by Jigsaw and Google (both a part of Alphabet) are working on tools to help improve online conversation. One area of focus is the study of negative online behaviors, like toxic comments (i.e. comments that are rude, disrespectful or otherwise likely to make someone leave a discussion). So far they’ve built a range of publicly available models served through the Perspective API, including toxicity. But the current models still make errors, and they don’t allow users to select which types of toxicity they’re interested in finding (e.g. some platforms may be fine with profanity, but not with other types of toxic content).

Source

Initial Setup

For this project, I am using VSCode as my IDE with "Docker" and "Dev Containers" extensions installed. I will be creating a Docker dev envronment to build my project in, as it allows for standardization of libraries across machines.

Docker Dev Environment Creation Instructions using Docker Desktop

  1. Download and install Docker client
  2. Open Docker client
  3. Click "Dev Environments" > "Create" > "Get Started" > "Choose Source" > Link/Create a Git repo > "Continue"
  4. The environment is created and running
  5. In the "Dev Environments" tab, select the running container and click "OPEN IN VSCODE"

Verify that the container is running by running "docker ps" in the command line

Connect to docker container using CLI

For CLI creation of a dev environment, use this resource