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

Upgrade spark-nlp-jsl to 2.5.5
  • Loading branch information
546075910 committed Aug 9, 2020
1 parent aea637e commit 0076001
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions jupyter/SparkOcrDicomDeIdentification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
" nlp_secret=nlp_secret,\n",
" jar_path=spark_ocr_jar_path,\n",
" nlp_version=\"2.5.5\",\n",
" nlp_internal=\"2.5.0\")\n",
" nlp_internal=\"2.5.5\")\n",
"\n",
"spark"
]
Expand Down Expand Up @@ -212,9 +212,9 @@
}
],
"source": [
"from sparknlp.annotator import *\n",
"from sparknlp.base import *\n",
"import sparknlp_jsl\n",
"from sparknlp.base import *\n",
"from sparknlp.annotator import *\n",
"from sparknlp_jsl.annotator import *\n",
"\n",
"import sparkocr\n",
Expand Down
8 changes: 4 additions & 4 deletions jupyter/SparkOcrUpdateTextPosition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@
"metadata": {},
"outputs": [],
"source": [
"from pyspark.ml import Pipeline\n",
"from pyspark.ml import PipelineModel\n",
"from sparkocr.transformers import *\n",
"\n",
"from sparknlp.annotator import *\n",
"from sparknlp.base import *\n",
"from sparkocr.enums import PageSegmentationMode"
"from sparkocr.enums import PageSegmentationMode\n",
"from sparkocr.transformers import *\n",
"from pyspark.ml import Pipeline"
]
},
{
Expand Down

1 comment on commit 0076001

@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.