GithubHelp home page GithubHelp logo

ai_biases_final_project's Introduction

Decoding Biases in Artificial Intelligence: Testing Python Sentiment Analysis Libraries for Racial and Gender Biases

by Nicolaus CHRISTENSON, Matteo NEBBIAI & Orestas STRAUKA

The Paper

The final version of the paper can be found here.

Requirements

In order to run the code yourself, make sure you follow these steps:

  • install Python 3.6 on your machine.
  • run pip install requirements.txt in your console.
  • run python index.py in your console.

The Files

  • index.py = the main script that has to be called and invokes all of the relevant functions.
  • equity_evaluation_corpus.csv = the file containing the test sentences from the Equity Evaluation Corpus with adjusted column names and some redactions/additions.
  • text_blob_library.py = the script that returns the sentiment analysis score of the TextBlob library for each sentence.
  • vader_sentiment_library.py = the script that returns the sentiment analysis score of the VADERSentiment library for each sentence.
  • results.csv = the file containing the data from equity_evaluation_corpus.csv and the scores of each library for each sentence.
  • analysis.py = the file that runs statistical analysis on results.csv along racial and gender lines.
  • gender_bias_results.csv = the file containing the results of analysis.py on gender bias in the libraries.
  • racial_bias_results.csv = the file containing the results of analysis.py on racial bias in the libraries.
  • mean_differences.png = the file containing the plot of the differences between the mean predicted scores of clusters of sentence pairs.
  • requirements.txt = the file containing all of the dependencies.

ai_biases_final_project's People

Contributors

alpineapache avatar mattnebb avatar

Watchers

 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.