Skip to content

Commit 0076001

Browse files
author
546075910
committed
GH140_Configure_auto_build_spark
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
1 parent aea637e commit 0076001

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

jupyter/SparkOcrDicomDeIdentification.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
" nlp_secret=nlp_secret,\n",
177177
" jar_path=spark_ocr_jar_path,\n",
178178
" nlp_version=\"2.5.5\",\n",
179-
" nlp_internal=\"2.5.0\")\n",
179+
" nlp_internal=\"2.5.5\")\n",
180180
"\n",
181181
"spark"
182182
]
@@ -212,9 +212,9 @@
212212
}
213213
],
214214
"source": [
215-
"from sparknlp.annotator import *\n",
216-
"from sparknlp.base import *\n",
217215
"import sparknlp_jsl\n",
216+
"from sparknlp.base import *\n",
217+
"from sparknlp.annotator import *\n",
218218
"from sparknlp_jsl.annotator import *\n",
219219
"\n",
220220
"import sparkocr\n",

jupyter/SparkOcrUpdateTextPosition.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@
154154
"metadata": {},
155155
"outputs": [],
156156
"source": [
157-
"from pyspark.ml import Pipeline\n",
158-
"from pyspark.ml import PipelineModel\n",
159-
"from sparkocr.transformers import *\n",
157+
"\n",
160158
"from sparknlp.annotator import *\n",
161159
"from sparknlp.base import *\n",
162-
"from sparkocr.enums import PageSegmentationMode"
160+
"from sparkocr.enums import PageSegmentationMode\n",
161+
"from sparkocr.transformers import *\n",
162+
"from pyspark.ml import Pipeline"
163163
]
164164
},
165165
{

0 commit comments

Comments
 (0)