We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1751c7d commit 07678ccCopy full SHA for 07678cc
johnsnowlabs/nlp.py
@@ -41,7 +41,14 @@
41
42
43
if try_import_lib("pyspark"):
44
- import pyspark.ml.param.shared as _shared_pyspark_ml_param
+ try:
45
+ import pyspark.ml.param.shared as _shared_pyspark_ml_param
46
+ except Exception as e:
47
48
+ from pyspark.ml.param import shared as _shared_pyspark_ml_param
49
50
+ _shared_pyspark_ml_param = None
51
+
52
import pyspark.sql as SQL
53
import pyspark.sql.functions as F
54
import pyspark.sql.types as T
0 commit comments