Giter VIP home page Giter VIP logo

embeddings's Introduction

embeddings

This is a simple example project for what we've dubbed the GRASS stack:

  • Graphql
  • React
  • Akka
  • Spark
  • Sangria

It uses Spark's Implementation of Word2Vec to build a model of text from an input corpus, then exposes a GraphQL interface with a React frontend. You can read more about it in this blog post

Getting Data

You can grab the Brown Corpus here:

Building a jar

Sbt-assembly is configured to build an uber jar with all dependencies, suitable for stand-alone operation or spark-submit

sbt assembly

Running it all

You can run the spark job and the server in one pass like this:

sbt "run-main net.spantree.embeddings.Main /PATH/TO/BROWN/CORPUS/c*"

Running the spark job only

sbt "run-main net.spantree.embeddings.SparkJob /PATH/TO/BROWN/CORPUS/c* model.json"

Running the server only

sbt "run-main net.spantree.embeddings.Server model.json"

embeddings's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

embeddings's Issues

Akka and Spark

Hi Richard,

Read your article with great interest and reaching hoping you can clarify how Akka/Actors can be used with Spark.

I am confused by articles about deprecation and removal of Akka in Spark documentation. Can Akka/Actors be used in a Spark solution still, or is it not recommended/deprecated.

Or is the issue how you create Akka solution?
Don't integrate with Spark's Akka implementation
** class FeederActor extends Actor
But create your own, as you have done in your article (https://www.spantree.net/blog/2016/10/18/spark-akka-sangria.html)

Reason asking, is investigating how to solve more complex workflows/dataflows that may lend themselves to be event driven. When a step finished, fires event (sends a message), and Actor could be listening for event, and execute the next step. Current simpler implementation in PoC is using Oozie.

And investigating whether this workflow/dataflow engine could be within Spark itself, for example with Akka/Actors, or perhaps external (Askaban, Airflow, other).

Thanks, Kurt

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.