Git Product home page Git Product logo

spark-nlp-book's Introduction

Natural Language Processing with Spark NLP

This the repo for the book Natural Language Processing with Spark NLP: Learning to Understand Text at Scale

I have two folders for the notebooks

  • colab is the folder containing the notebooks to be run on google colab
  • jupyter is the folder to run the notebooks locally

I'm am working on a docker deployment, and it should be done soon.

There are a couple chapters where you may run into problems

  • Chapter 9: I've had some problems running the Core NLP server
  • Chapter 13: Uploading the data to Neo4j takes a very long time
  • Chapter 14: I've had some problems with spark-elasticsearch interface, also I have not been able to run elasticsearch on colab

Data

Download the mini_newsgroups.tar.gz data set

mgarcia@jammy:~/Work/spark-nlp-book$ wget https://archive.ics.uci.edu/ml/machine-learning-databases/20newsgroups-mld/mini_newsgroups.tar.gz

and extract it in the project folder

mgarcia@jammy:~/Work/spark-nlp-book$ tar zxvf mini_newsgroups.tar.gz -C data/

Spark

Using the Docker image for pyspark. To run the container mounting the data directory as /mydata

docker run -it --mount type=bind,source="$(pwd)/data",target=/mydata apache/spark-py /opt/spark/bin/pyspark

Running on Ibex

(venv) [garcm0b@cn513-10-r spark-nlp-book]$ spark-submit --packages com.johnsnowlabs.nlp:spark-nlp_2.12:4.0.2 bash/load_data.py 

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.