<jupyter_start><jupyter_text>Description- https://github.com/JohnSnowLabs/spark-nlp  Colab<jupyter_code>%%capture
# capture will not print in notebook

import os
import sys
ENV_COLAB = 'google.colab' in sys.modules

if ENV_COLAB:
    ## install modules
    import os

    # Install java
    ! apt-get install -y openjdk-8-jdk-headless -qq > /dev/null
    os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-8-openjdk-amd64"
    os.environ["PATH"] = os.environ["JAVA_HOME"] + "/bin:" + os.environ["PATH"]
    ! java -version

    # Install pyspark
    ! pip install --ignore-installed pyspark==2.4.4

    # Install Spark NLP
    ! pip install --ignore-installed spark-nlp==2.5.5
    ## print
    print('Environment: Google Colaboratory.')

# NOTE: If we update modules in gcolab, we need to restart runtime.<jupyter_output><empty_output><jupyter_text>Test code<jupyter_code>import sparknlp

spark = sparknlp.start()
data = [
  ("New York is the greatest city in the world", 0),
  ("The beauty of Paris is vast", 1),
  ("The Centre Pompidou is in Paris", 1)
]

sdf = spark.createDataFrame(data, ["text","label"])
sdf.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13723776223776224, 'fraction_numerical': 0.011363636363636364, 'mean_word_length': 3.8516949152542375, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '316647', 'license': 'Apache-2.0', 'n_tokens_mistral': 420, 'n_tokens_neox': 408, 'n_words': 101, 'path': 'a01_PySpark/m06_pyspark_sparknlp/colab/module_sparknlp.ipynb', 'repo_name': 'mindis/Big_Data_Analysis', 'size': '1144'}