Giter Site home page Giter Site logo

jbdatascience / bsd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaoyang33/bsd

0.0 0.0 0.0 3.06 MB

Bias Statement Detector (BSD) computationally detects and quantifies the degree of bias in sentence-level text of news stories.

License: MIT License

R 7.23% Python 92.65% Shell 0.12%

bsd's Introduction

BSD - Bias Statement Detector

https://travis-ci.org/cjhutto/bsd.svg?branch=master

Bias Statement Detector (BSD) computationally detects and quantifies the degree of bias in sentence-level text of news stories. We incorporate common linguistic and structural cues of biased language, including sentiment analysis, subjectivity analysis, modality (expressed certainty), the use of factive verbs, hedge phrases, and many other features. The model achieved greater than 97% accuracy, and accounted for 85.9% of the variance in human judgements of perceived bias in news-like text. Using 10-fold cross-validation, we verified that the model is able to consistently predict the average bias (mean of 91 human participant judgements) with remarkably good fit. It is fully open-sourced under the [MIT License] (we sincerely appreciate all attributions and readily accept most contributions, but please don't hold us liable).

Introduction

This README file describes the model and dataset of the paper:

Computationally Detecting and Quantifying the Degree of Bias in Sentence-Level Text of News Stories
(by C.J. Hutto)
Second International Conference on Human and Social Analytics (HUSO-15). Barcelona, Spain 2015.
For questions, please contact:
C.J. Hutto
Georgia Institute of Technology, Atlanta, GA 30032
cjhutto [at] gatech [dot] edu

Citation Information

If you use either the dataset or any of the BSD analysis tools (bias statement lexicons or Python code for extracting linguistic or structural features, or analysing/predicting degree of bias) in your work, please cite the above paper. For example:

Hutto, C.J. (2015). Computationally Detecting and Quantifying the Degree of Bias in Sentence-Level Text of News Stories. Second International Conference on Human and Social Analytics (HUSO-15). Barcelona, Spain 2015.

Python Code Example

statement = "This is a sample sentence to be tested."
compute_bias(statement)

For a more complete demo, go to the install directory and run python bias.py. (Be sure you are set to handle UTF-8 encoding in your terminal or IDE.)

You can also inspect the code for the demo_sample_news_story_sentences() function for an idea of how to use BS Detector.

bsd's People

Contributors

cjhutto avatar diva-lab avatar jpfairbanks avatar mscam avatar scottagt 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.