spark-nlp-workshop

(โ˜… 1,089)

Public runnable examples of using John Snow Labs' NLP for Apache Spark.

Showing a partial file list โ€” download the zip above to see everything.

  • .gitattributes
  • .gitignore
  • colab_setup.sh
  • ISSUE_TEMPLATE.md
  • jsl_colab_setup.sh
  • jsl_colab_setup_with_OCR.sh
  • jsl_sagemaker_setup.sh
  • jsl_sagemaker_setup_3.0.1.sh
  • jsl_sagemaker_setup_with_OCR.sh
  • LICENSE
  • patterns.json
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/JohnSnowLabs/spark-nlp-workshop

Downloads the entire project code from GitHub to your computer.

cd spark-nlp-workshop

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
โš ๏ธ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
docker compose -f agents/mcp_servers/deidentification/deid-service/docker-compose.yml up -d --build

Runs the command against the services defined in the compose file.

โœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

3. Maven (Java)

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • JDK (Java) Required to build and run Java projects.
  • Maven The build tool used for the mvn command.
โš ๏ธ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd legal-nlp/platforms/grpc/java

This project's files live in a subfolder, so move into it first.

mvn clean install

Installs dependencies and builds the project using Maven.

โœ… A BUILD SUCCESS message means it worked. The output is created under target/.

4. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
$ python3 -m venv .sparknlp-env

Runs the Python script (or module).

$ pip install pyspark==3.1.2

Installs the Python libraries listed in requirements.txt (or similar).

$ pip install spark-nlp

Installs the Python libraries listed in requirements.txt (or similar).

<img src="https://static.pepy.tech/personalized-badge/spark-nlp?period=total&units=international_system&left_color=grey&right_color=orange&left_text=pip%20downloads" /></a>

Type this command into your terminal and run it.

โœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation