Public runnable examples of using John Snow Labs' NLP for Apache Spark.
Jupyter Notebook
1,087
3,030 commits
updated Oct 15, 2026
Showcasing notebooks and codes of how to use Spark NLP in Python and Scala.
$ java -version
# should be Java 8 (Oracle or OpenJDK)
$ python3 -m venv .sparknlp-env
$ source .sparknlp-env/bin/activate
# spark-nlp by default is based on pyspark 3.x
$ pip install pyspark==3.1.2
$ pip install spark-nlp
# This is only to setup PySpark and Spark NLP on Colab
!wget http://setup.johnsnowlabs.com/colab.sh -O - | bash
https://github.com/JohnSnowLabs/spark-nlp
Take a look at our official spark-nlp page: http://nlp.johnsnowlabs.com/ for user documentation and examples
If you find any example that is no longer working, please create an issue.
Apache Licence 2.0
493 followers · starred Feb 2023
46 followers · starred Oct 2020
127 followers · starred Nov 2020
53 followers · starred Jun 2021
Public runnable examples of using John Snow Labs' NLP for Apache Spark.
Jupyter Notebook
1,087
3,030 commits
updated Oct 15, 2026
Showcasing notebooks and codes of how to use Spark NLP in Python and Scala.
$ java -version
# should be Java 8 (Oracle or OpenJDK)
$ python3 -m venv .sparknlp-env
$ source .sparknlp-env/bin/activate
# spark-nlp by default is based on pyspark 3.x
$ pip install pyspark==3.1.2
$ pip install spark-nlp
# This is only to setup PySpark and Spark NLP on Colab
!wget http://setup.johnsnowlabs.com/colab.sh -O - | bash
https://github.com/JohnSnowLabs/spark-nlp
Take a look at our official spark-nlp page: http://nlp.johnsnowlabs.com/ for user documentation and examples
If you find any example that is no longer working, please create an issue.
Apache Licence 2.0
493 followers · starred Feb 2023
46 followers · starred Oct 2020
127 followers · starred Nov 2020
53 followers · starred Jun 2021