Skip to content

jonathanlo411/dsc180b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSC180 - Auditlab

Alt

Overview

This is part 2 of the DSC180 sequence. For the first part, please see the DSC180A repository. This quarter focuses on auditing toxicity models TextBlob, vaderSentiment, and Perspective API.

Using

  1. Obtain an Perspective API Key: For all cases you will need a Perspective API key. You can find instructions on how to do so from the Perspective API Docs.
  2. Add config information: Fill out the Perspective API key into the sample.secrets.json and rename the file to secrets.json. For example usage, see notebooks/model-exploration.ipynb.
  3. Setup your environment: Install packages TextBlob, vaderSentiment, and Google API Client. These are in addition to the the standard packages provided by Jupyter.
pip install textblob vaderSentiment google-api-python-client
python -m textblob.download_corpora
  1. Run tests: Run one of the notebooks under notebooks/. It is recommended to run one of the model-audit-<NAME>.ipynb notebooks as they are the most up-to-date.