Coder Social home page Coder Social logo

anti-bait's Introduction

Anti-Bait ๐Ÿ“ฐ

Uses Python ML to detect biased news.
The data to train this program is provided in the file news.csv.

Python

Libraries used

  • Numpy
  • Pandas
  • Sklearn
  • Streamlit

Local development (Windows)

py -m pip install --user virtualenv
py -m venv env

Authorize access

Set-ExecutionPolicy Unrestricted -Scope Process
.\env\Scripts\activate.ps1

Installing libraries

py -m pip install [library-name]

How to run unit tests

Run the command below.

py -m unittest -v fake-news.py

How to use the UI

Run the command below.

py -m streamlit run gui.py

image

The UI should be on http://localhost:8501/

File information

  • fake-news.py
    This file contains the model to detect biased news.
    When prompted, enter the headline in text form in the terminal to get either "UNBIASED" or "BIASED".

  • cm.py
    This file contains the Confusion Matrix showing the validity of the model. image

  • gui.py
    This file contains the code for GUI showing the model.

anti-bait's People

Contributors

montycoder0701 avatar

Watchers

 avatar

anti-bait's Issues

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.