Coder Social home page Coder Social logo

howardyclo / digestant Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 5.0 168.64 MB

Modules for effectively digesting data from Twitter and Reddit using ML, NLP and statistics.

Python 3.15% Jupyter Notebook 96.85%
reddit machine-learning natural-language-processing topic-modeling summarization named-entity-recognition

digestant's Introduction

Digestant

See more on introduction slides, project survey and demo.

Dev Environment

  • Python 3.x

Setup

  • Recommended to create a new virtual environment to manage your python project.
  • Download python packages from requirements.txt: $ pip install -r requirements.txt.
  • Download NLTK data: $ python -m nltk.downloader all.
  • Download SpaCy en_core_web_md model: $ python -m spacy download en_core_web_md.
  • Download stanford-ner-xxxx-xx-xx zip file Stanford NER model
    1. Download from the official website.
    2. Unzip and place the stanford-ner-xxxx-xx-xx folder the project root path. The name of folder should also be stanford-ner/.

Usage

  1. Create a twitter and reddit account, follow the accounts that you are interested in.
  2. Copy config-sample.json and rename it to config.json in the same directory. Remember to fill the keys in config.json. (Go to your twitter/reddit developer console, create application and get keys.)
  3. We need to crawl twitter data, so run the script crawlers/twitter_crawler.py. It will automatically crawl data and save them to dataset/twitter/ by default.
  4. You can customize data entities by modifying domains.json and types.json. (See demo)
  5. Currently, you can execute demo/demo_howard.ipynb or other notebooks to see daily digest.

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.