Skip to content

Commit

Permalink
GH140_Configure_auto_build_spark
Browse files Browse the repository at this point in the history
Adapt Notebook to use spark-nlp compatabile with spark23

Spark NLP	Apache Spark 2.3.x	Apache Spark 2.4.x
2.5.5	             YES	        YES
  • Loading branch information
546075910 committed Aug 7, 2020
1 parent 3ff1f15 commit 1a566f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions jupyter/SparkOcrDicomDeIdentification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"source": [
"# install from PYPI using secret\n",
"%pip install --upgrade spark-nlp-jsl==2.5.3 --extra-index-url https://pypi.johnsnowlabs.com/$nlp_secret\n",
"%pip install spark-nlp==2.5.3\n",
"%pip install spark-nlp==2.5.5\n",
"%pip install spark-ocr==$version --user --extra-index-url=https://pypi.johnsnowlabs.com/$secret --upgrade"
]
},
Expand Down Expand Up @@ -175,7 +175,7 @@
"spark = start(secret=secret,\n",
" nlp_secret=nlp_secret,\n",
" jar_path=spark_ocr_jar_path,\n",
" nlp_version=\"2.5.0\",\n",
" nlp_version=\"2.5.5\",\n",
" nlp_internal=True)\n",
"\n",
"spark"
Expand Down Expand Up @@ -2225,4 +2225,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
6 changes: 3 additions & 3 deletions jupyter/SparkOcrUpdateTextPosition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"outputs": [],
"source": [
"# install from PYPI using secret\n",
"%pip install spark-nlp==2.4.5\n",
"%pip install spark-nlp==2.5.5\n",
"%pip install spark-ocr==$version --user --extra-index-url=https://pypi.johnsnowlabs.com/$secret --upgrade"
]
},
Expand Down Expand Up @@ -144,7 +144,7 @@
"if license:\n",
" os.environ['JSL_OCR_LICENSE'] = license\n",
"\n",
"spark = start(secret=secret, jar_path=spark_ocr_jar_path, nlp_version=\"2.4.5\")\n",
"spark = start(secret=secret, jar_path=spark_ocr_jar_path, nlp_version=\"2.5.5\")\n",
"spark"
]
},
Expand Down Expand Up @@ -346,4 +346,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}

1 comment on commit 1a566f7

@review-notebook-app
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Jupyter notebook diffs for this commit on  ReviewNB

You can open a pull request to discuss changes and offer feedback.


Powered by ReviewNB

Please sign in to comment.