Giter Club home page Giter Club logo

online-lda-storm's Introduction

Storm Trident topology for Online LDA Algorithm

@author: Sofia Tzima

Description

This project is part of my thesis during my postgraduate studies at National Technical University of Athens.

The purpose of this project was to implement real-time topic detection on Twitter documents using Apache Storm and the Latent Dirichlet Allocation (LDA) algorithm.

Technologies

This project uses Apache Storm to do real-time processing of input data. Input is polled by Twitter public stream API. Specifically, it uses the Trident abstraction of Storm that allows to do elegant stream processing, state manipulation and low latency querying. Redis Server is used for persisting the state.

LDA Algorithm

In order to do real-time processing, I used the Online version of the LDA Algorithm. Typical LDA Algorithm processes the documents iteratively in batches. The Online LDA algorithm only processes each document once, making it suitable for real-time processing.

I used the library JOLDA for executing the algorithm.

Run locally

The project is built using Apache Maven so you can just download and execute with maven. It depends on the JOLDA library, so you have to check it out and build it with Maven as well. You have to install redis server locally, i.e. run sudo apt-get install redis-server for the topology to run. Finally you have to configure the necessary properties in config file.

Run on a Storm cluster

In order to run on a cluster, you will need to setup a Storm cluster. You also need to set up a Redis server and configure the necessary properties in config file. To submit the topology you should run storm jar filename.jar mainClass topologyName in Nimbus machine.

Topology

This Storm Trident topology:

  • is feeded with data from public Twitter stream using TwitterSampleSpout in batches
  • pre-processes the input data (stemming, removing stop words)
  • joins the tweets in a big list of tweets
  • applies the Online LDA algorithm in each batch

My whole thesis is here. Unfortunately it is written in Greek :P

online-lda-storm's People

Contributors

siws avatar

Watchers

 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.