Code Monkey home page Code Monkey logo

newsworthy's Introduction

This app currently takes a Twitter user's news feed and evaluates the extent to which the articles they share agree or disagree with articles published by six major news outlets.

It uses a classification algorithm developed by UKP Lab (https://github.com/hanselowski/athene_system)

==================================

Local installation (Mac/Unix):

Install python3. Clone this repository. Create virtual environment.

python3 -m venv myvenv
source venv/bin/activate

Install requirements.

git clone "https://github.com/hanselowski/athene_system.git"
python3 pip install -r requirements.txt

Edit feed_compare/tokens_SKELETON.py to include relevant Twitter tokens (Consumer Key, Secret, and Access Token), and rename to tokens.py.

Unzip the features file to the directory:

athene_system/data/fnc-1/features

Unzip the model file to the directory:

athene_system/data/fnc-1/mlp_models

Parts of the Natural Language Toolkit (NLTK) might need to be installed manually:

python3 -c "import nltk; nltk.download('stopwords'); nltk.download('punkt'); nltk.download('wordnet')"

Optional: Copy Word2Vec GoogleNews-vectors-negative300.bin.gz to folder athene_system/data/embeddings/google_news/.

Optional: Download Paraphrase Database: Lexical XL Paraphrases 1.0 and extract it to the athene_system/data/ppdb folder.

==================================

To run:

python app.py

Browse to http://localhost:5001/

newsworthy's People

Contributors

rosscg avatar

Watchers

James Cloos 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.