Giter Club home page Giter Club logo

kandlcontentpipeline's Introduction

Introduction

This project provides a prototype content pipeline for content analysis

Getting Started

Note: This has only been tested on a Mac, it should work on other *nix systems.

  • Install RVM and switch to ruby-1.9.3 - rvm use 1.9.3-head
  • Install bundler - gem install bundler
  • Install gem dependancies - bundle install
  • Install Apache Mahout

Note on apache mahout

Using brew:

  • brew install mahout
  • brew uninstall hadoop
  • brew install homebrew/versions/hadoop121

See: http://stackoverflow.com/questions/22702947/mahout-0-9-and-hadoop-2-2-0-found-interface-org-apache-hadoop-mapreduce-jobcon

How does it work ?

The pipeline can be seen as 3 steps:

  • aquire
  • extract
  • recommend

Aquire

This step identifies content to be operated on and downloads the pages identified. It is performed in two steps:

  • Retrieve some source content links and persists them
  • Download content from above links and persist it

This can be achieved by running 2 scripts:

./scripts/retrieve_links.sh arts
./scripts/retrieve_content.sh

This queries google for the top 10 pages of search results for bbc.co.uk/arts and persists them into content/links. The content is then retrieved and persisted into content/files and finally the body text is extracted for each page and persisted into content/processed.

Extract

This step operates on the downloaded content from content/files, it extracts the body text for each page and persists the extracted content into content/processed.

This can be achieved by running:

./scripts/extract_content.sh

These first two steps can be repeated for new domains and existing content will be persisted with only new content being downloaded and oeprated on.

Recommend

This step transforms the downloaded and extracted content into a form suitable for Apache Mahout and then runs a similarity algorithm over the content to produce similarity matrix for the pages. This similarity matrix can then be persisted into a RDBMS or other storage system.

This can be achieved by running 2 scripts:

./scripts/mahout_transform.sh
./scripts/analyse_data.sh

kandlcontentpipeline's People

Contributors

rjlee avatar

Watchers

 avatar  avatar

Forkers

nathanmesserbbc

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.