GithubHelp home page GithubHelp logo

nlpwithmahout's Introduction

NLP With Mahout

This repository is intended to provide a working example of using the Latent Dirichlet Allocation implementation from Mahout. This work was presented at the Hadoop Summit 2013 in San Jose, California. You can find the presentation here.

Details

The data presented here comes from the bitterlemons corpus. This data contains blog post entries about the Israeli and Palestinian crisis from the early 2000s.

Running the "mvn clean verify" command will prep the data and code in the target/landing directory. You should copy this directory to your gateway node (i.e. a node where the hadoop client is installed).

The driver program will upload the data from the access node to HDFS as well as running the training. On the Hortonworks Sandbox VM instance running in VMWare on my Macbook pro, this takes approximately 30 minutes. At the end, it will output the topics.

Caveats

Currently, there are two caveats worth mentioning. The driver program for seq2sparse had to be ripped out of Mahout and modified as of the time of this writing due to the inability to pass in the -libjars arg. This was necessary because a custom analyzer was used (to filter not only by stop words, but also by part of speech tag). I will be submitting a ticket to Mahout shortly with my patch.

Also, this ran on a patched version of Mahout 0.7. I would suggest waiting until 0.8 to let the patch that I applied for the LDA implementation to make its way into the release.

nlpwithmahout's People

Contributors

cestella avatar

Watchers

Rashad Russell 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.