File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
src/main/scala/com/johnsnowlabs/nlp Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 12
12
#
13
13
import os
14
14
import sys
15
+ from datetime import date
15
16
16
17
sys .path .insert (0 , os .path .abspath ("../" ))
17
18
19
+ from sparknlp import __version__
18
20
19
- # -- Project information -----------------------------------------------------
20
21
22
+ # -- Project information -----------------------------------------------------
21
23
project = "Spark NLP"
22
- copyright = "2023, John Snow Labs"
24
+ copyright = f" { date . today (). year } John Snow Labs"
23
25
author = "John Snow Labs"
24
26
25
27
# The full version, including alpha/beta/rc tags
26
- release = "6.0.1"
27
- pyspark_version = "3.2.3 "
28
+ release = __version__
29
+ pyspark_version = "3.4.4 "
28
30
29
31
# -- General configuration ---------------------------------------------------
30
32
Original file line number Diff line number Diff line change 66
66
annotators = annotator
67
67
embeddings = annotator
68
68
69
+ __version__ = "6.0.1"
70
+
69
71
70
72
def start (gpu = False ,
71
73
apple_silicon = False ,
@@ -132,7 +134,7 @@ def start(gpu=False,
132
134
The initiated Spark session.
133
135
134
136
"""
135
- current_version = "6.0.1"
137
+ current_version = __version__
136
138
137
139
if params is None :
138
140
params = {}
@@ -316,4 +318,4 @@ def version():
316
318
str
317
319
The current Spark NLP version.
318
320
"""
319
- return '6.0.1'
321
+ return __version__
Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ package com.johnsnowlabs.nlp
18
18
19
19
import com .johnsnowlabs .reader .SparkNLPReader
20
20
import org .apache .spark .sql .SparkSession
21
+ import com .johnsnowlabs .util .Build
21
22
22
23
import scala .collection .JavaConverters ._
23
24
24
25
object SparkNLP {
25
26
26
- val currentVersion = " 6.0.1 "
27
+ val currentVersion : String = Build .version
27
28
val MavenSpark3 = s " com.johnsnowlabs.nlp:spark-nlp_2.12: $currentVersion"
28
29
val MavenGpuSpark3 = s " com.johnsnowlabs.nlp:spark-nlp-gpu_2.12: $currentVersion"
29
30
val MavenSparkSilicon = s " com.johnsnowlabs.nlp:spark-nlp-silicon_2.12: $currentVersion"
You can’t perform that action at this time.
0 commit comments