Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

A service that will pull form a queue of stories with text and tag stories with the results from an install of the predict-news-labeller.

License

Notifications You must be signed in to change notification settings

mitmedialab/MediaCloud-NYT-Theme-Worker

Repository files navigation

Media Cloud NYT Theme Worker

A helper that will add NYT theme tags to all the stories in a topic.

Dev Installation

  1. virtualenv venv to create your virtualenv
  2. source venv/bin/activate - to activate your virtualenv
  3. pip install -r requirements.txt - to install the dependencies

Configuration

Define the settings you need to in app.config, based on the template in there.

Use

Run the workers in one window by doing: celery worker -A themeworker -l info.

Tagging all stories in a Topic

In another window start up the story fetcher with python queue-stories-in-topic.py 1234 (where 1234 is the id of the topic you want to process),

Tagging stories matching a query

About

A service that will pull form a queue of stories with text and tag stories with the results from an install of the predict-news-labeller.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published