java -version
This should return something like this:
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b09)
OpenJDK 64-Bit Server VM (build 25.242-b09, mixed mode)
To install ssh server
If ssh is already installed and enabled, skip this step or else run the following commands;
Steps to install NLPSpark library
Requirements & Setup
Run the following commands to install Java
To install ssh server
If ssh is already installed and enabled, skip this step or else run the following commands;
To install Apcahe Spark
Register for spark nlp trial license
export SPARK_NLP_LICENSE=${SPARK_NLP_LICENSE} >> ~/.bashrc
source ~/.bashrc
To install NLP Spark
run conda install -c johnsnowlabs spark-nlp
Register for spark nlp jsl license at https://nlp.johnsnowlabs.com/docs/en/licensed_install
Run the following command: pip install -q spark-nlp-jsl==${version} --extra-index-url https://pypi.johnsnowlabs.com/${secret.code} --upgrade
run spark-shell --packages com.johnsnowlabs.nlp:spark-nlp_2.12:3.1.0 to Load Spark NLP with pyspark
Spark NLP Models
If you prefer to use the model online, then discard this step, but if offline is the preferred option, then download the following from https://github.com/JohnSnowLabs/spark-nlp-models.