Skip to content

Commit

Permalink
bump version to rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Jun 28, 2019
1 parent d2a1876 commit c3110b1
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 46 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Take a look at our official Spark NLP page: [http://nlp.johnsnowlabs.com/](http:

## Apache Spark Support

Spark NLP *2.1.0* has been built on top of Apache Spark 2.4.3
Spark NLP *2.1.0-rc1* has been built on top of Apache Spark 2.4.3

Note that Spark is not retrocompatible with Spark 2.3.x, so models and environments might not work.

Expand All @@ -65,18 +65,18 @@ This library has been uploaded to the [spark-packages repository](https://spark-

Benefit of spark-packages is that makes it available for both Scala-Java and Python

To use the most recent version just add the `--packages JohnSnowLabs:spark-nlp:2.1.0` to you spark command
To use the most recent version just add the `--packages JohnSnowLabs:spark-nlp:2.1.0-rc1` to you spark command

```sh
spark-shell --packages JohnSnowLabs:spark-nlp:2.1.0
spark-shell --packages JohnSnowLabs:spark-nlp:2.1.0-rc1
```

```sh
pyspark --packages JohnSnowLabs:spark-nlp:2.1.0
pyspark --packages JohnSnowLabs:spark-nlp:2.1.0-rc1
```

```sh
spark-submit --packages JohnSnowLabs:spark-nlp:2.1.0
spark-submit --packages JohnSnowLabs:spark-nlp:2.1.0-rc1
```

This can also be used to create a SparkSession manually by using the `spark.jars.packages` option in both Python and Scala
Expand Down Expand Up @@ -144,7 +144,7 @@ Our package is deployed to maven central. In order to add this package as a depe
<dependency>
<groupId>com.johnsnowlabs.nlp</groupId>
<artifactId>spark-nlp_2.11</artifactId>
<version>2.1.0</version>
<version>2.1.0-rc1</version>
</dependency>
```

Expand All @@ -155,22 +155,22 @@ and
<dependency>
<groupId>com.johnsnowlabs.nlp</groupId>
<artifactId>spark-nlp-ocr_2.11</artifactId>
<version>2.1.0</version>
<version>2.1.0-rc1</version>
</dependency>
```

### SBT

```sbtshell
// https://mvnrepository.com/artifact/com.johnsnowlabs.nlp/spark-nlp
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp" % "2.1.0"
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp" % "2.1.0-rc1"
```

and

```sbtshell
// https://mvnrepository.com/artifact/com.johnsnowlabs.nlp/spark-nlp-ocr
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp-ocr" % "2.1.0"
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp-ocr" % "2.1.0-rc1"
```

Maven Central: [https://mvnrepository.com/artifact/com.johnsnowlabs.nlp](https://mvnrepository.com/artifact/com.johnsnowlabs.nlp)
Expand All @@ -185,7 +185,7 @@ If you installed pyspark through pip/conda, you can install `spark-nlp` through

Pip:
```bash
pip install spark-nlp==2.1.0
pip install spark-nlp==2.1.0.rc1
```
Conda:
```bash
Expand All @@ -202,7 +202,7 @@ spark = SparkSession.builder \
.master("local[4]")\
.config("spark.driver.memory","4G")\
.config("spark.driver.maxResultSize", "2G") \
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0")\
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0-rc1")\
.config("spark.kryoserializer.buffer.max", "500m")\
.getOrCreate()
```
Expand All @@ -216,7 +216,7 @@ Use either one of the following options
* Add the following Maven Coordinates to the interpreter's library list

```bash
com.johnsnowlabs.nlp:spark-nlp_2.11:2.1.0
com.johnsnowlabs.nlp:spark-nlp_2.11:2.1.0-rc1
```

* Add path to pre-built jar from [here](#pre-compiled-spark-nlp-and-spark-nlp-ocr) in the interpreter's library list making sure the jar is available to driver path
Expand All @@ -226,7 +226,7 @@ com.johnsnowlabs.nlp:spark-nlp_2.11:2.1.0
Apart from previous step, install python module through pip

```bash
pip install spark-nlp==2.1.0
pip install spark-nlp==2.1.0.rc1
```

Or you can install `spark-nlp` from inside Zeppelin by using Conda:
Expand All @@ -251,7 +251,7 @@ export PYSPARK_PYTHON=python3
export PYSPARK_DRIVER_PYTHON=jupyter
export PYSPARK_DRIVER_PYTHON_OPTS=notebook

pyspark --packages JohnSnowLabs:spark-nlp:2.1.0
pyspark --packages JohnSnowLabs:spark-nlp:2.1.0-rc1
```

Alternatively, you can mix in using `--jars` option for pyspark + `pip install spark-nlp`
Expand Down
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(is_gpu.equals("false")){

organization:= "com.johnsnowlabs.nlp"

version := "2.1.0"
version := "2.1.0-rc1"

scalaVersion in ThisBuild := scalaVer

Expand Down Expand Up @@ -197,7 +197,7 @@ assemblyMergeStrategy in assembly := {
lazy val evaluation = (project in file("eval"))
.settings(
name := "spark-nlp-eval",
version := "2.1.0",
version := "2.1.0-rc1",

assemblyMergeStrategy in assembly := evalMergeRules,

Expand Down Expand Up @@ -239,7 +239,7 @@ lazy val evaluation = (project in file("eval"))
lazy val ocr = (project in file("ocr"))
.settings(
name := "spark-nlp-ocr",
version := "2.1.0",
version := "2.1.0-rc1",

test in assembly := {},

Expand Down
10 changes: 5 additions & 5 deletions docs/_layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ <h1>{{ _section.title }}</h1>
<div class="cell cell--12 cell--lg-12" style="text-align: left; background-color: #2d2d2d; padding: 10px">
{% highlight bash %}
# Install Spark NLP from PyPI
$ pip install spark-nlp==2.1.0
$ pip install spark-nlp==2.1.0.rc1

# Install Spark NLP from Anacodna/Conda
$ conda install -c johnsnowlabs spark-nlp

# Load Spark NLP with Spark Shell
$ spark-shell --packages JohnSnowLabs:spark-nlp:2.1.0
$ spark-shell --packages JohnSnowLabs:spark-nlp:2.1.0-rc1

# Load Spark NLP with PySpark
$ pyspark --packages JohnSnowLabs:spark-nlp:2.1.0
$ pyspark --packages JohnSnowLabs:spark-nlp:2.1.0-rc1

# Load Spark NLP with Spark Submit
$ spark-submit --packages JohnSnowLabs:spark-nlp:2.1.0
$ spark-submit --packages JohnSnowLabs:spark-nlp:2.1.0-rc1

# Load Spark NLP as external JAR after comiling and bulding Spark NLP by `sbt assembly`
$ spark-shell --jar spark-nlp-assembly-2.1.0
$ spark-shell --jar spark-nlp-assembly-2.1.0-rc1
{% endhighlight %}
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions docs/en/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ modify_date: "2019-05-16"
If you installed pyspark through pip, you can install `spark-nlp` through pip as well.

```bash
pip install spark-nlp==2.1.0
pip install spark-nlp==2.1.0.rc1
```

PyPI [spark-nlp package](https://pypi.org/project/spark-nlp/)
Expand All @@ -36,7 +36,7 @@ spark = SparkSession.builder \
.master("local[*]")\
.config("spark.driver.memory","8G")\
.config("spark.driver.maxResultSize", "2G") \
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0")\
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0-rc1")\
.config("spark.kryoserializer.buffer.max", "500m")\
.getOrCreate()
```
Expand Down Expand Up @@ -97,7 +97,7 @@ Our package is deployed to maven central. In order to add this package as a depe
<dependency>
<groupId>com.johnsnowlabs.nlp</groupId>
<artifactId>spark-nlp_2.11</artifactId>
<version>2.1.0</version>
<version>2.1.0-rc1</version>
</dependency>
```

Expand All @@ -108,22 +108,22 @@ and
<dependency>
<groupId>com.johnsnowlabs.nlp</groupId>
<artifactId>spark-nlp-ocr_2.11</artifactId>
<version>2.1.0</version>
<version>2.1.0-rc1</version>
</dependency>
```

### SBT

```sbtshell
// https://mvnrepository.com/artifact/com.johnsnowlabs.nlp/spark-nlp
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp" % "2.1.0"
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp" % "2.1.0-rc1"
```

and

```sbtshell
// https://mvnrepository.com/artifact/com.johnsnowlabs.nlp/spark-nlp-ocr
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp-ocr" % "2.1.0"
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp-ocr" % "2.1.0-rc1"
```

Maven Central: [https://mvnrepository.com/artifact/com.johnsnowlabs.nlp](https://mvnrepository.com/artifact/com.johnsnowlabs.nlp)
Expand Down Expand Up @@ -151,7 +151,7 @@ Note: You can import these notebooks by using their URLs.
4- From the Source drop-down menu, select **Maven Coordinate:**
![Databricks](https://databricks.com/wp-content/uploads/2015/07/select-maven-1024x711.png)

5- Now, all available **Spark Packages** are at your fingertips! Just search for **JohnSnowLabs:spark-nlp:version** where **version** stands for the library version such as: `1.8.4` or `2.1.0`
5- Now, all available **Spark Packages** are at your fingertips! Just search for **JohnSnowLabs:spark-nlp:version** where **version** stands for the library version such as: `1.8.4` or `2.1.0-rc1`
![Databricks](https://databricks.com/wp-content/uploads/2015/07/browser-1024x548.png)

6- Select **spark-nlp** package and we are good to go!
Expand Down
18 changes: 9 additions & 9 deletions docs/en/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ Spark NLP is built on top of **Apache Spark 2.4.0** and such is the **only** sup
To start using the library, execute any of the following lines depending on your desired use case:

```bash
spark-shell --packages JohnSnowLabs:spark-nlp:2.1.0
pyspark --packages JohnSnowLabs:spark-nlp:2.1.0
spark-submit --packages JohnSnowLabs:spark-nlp:2.1.0
spark-shell --packages JohnSnowLabs:spark-nlp:2.1.0-rc1
pyspark --packages JohnSnowLabs:spark-nlp:2.1.0-rc1
spark-submit --packages JohnSnowLabs:spark-nlp:2.1.0-rc1
```

### **Straight forward Python on jupyter notebook**

Use pip to install (after you pip installed numpy and pyspark)

```bash
pip install spark-nlp==2.1.0
pip install spark-nlp==2.1.0.rc1
jupyter notebook
```

Expand All @@ -60,7 +60,7 @@ spark = SparkSession.builder \
.appName('OCR Eval') \
.config("spark.driver.memory", "6g") \
.config("spark.executor.memory", "6g") \
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0") \
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0-rc1") \
.getOrCreate()
```

Expand All @@ -69,13 +69,13 @@ spark = SparkSession.builder \
Add the following maven coordinates in the dependency configuration page:

```bash
com.johnsnowlabs.nlp:spark-nlp_2.11:2.1.0
com.johnsnowlabs.nlp:spark-nlp_2.11:2.1.0-rc1
```

For Python in **Apache Zeppelin** you may need to setup _**SPARK_SUBMIT_OPTIONS**_ utilizing --packages instruction shown above like this

```bash
export SPARK_SUBMIT_OPTIONS="--packages JohnSnowLabs:spark-nlp:2.1.0"
export SPARK_SUBMIT_OPTIONS="--packages JohnSnowLabs:spark-nlp:2.1.0-rc1"
```

### **Python Jupyter Notebook with PySpark**
Expand All @@ -85,7 +85,7 @@ export SPARK_HOME=/path/to/your/spark/folder
export PYSPARK_DRIVER_PYTHON=jupyter
export PYSPARK_DRIVER_PYTHON_OPTS=notebook

pyspark --packages JohnSnowLabs:spark-nlp:2.1.0
pyspark --packages JohnSnowLabs:spark-nlp:2.1.0-rc1
```

### S3 based standalone cluster (No Hadoop)
Expand Down Expand Up @@ -297,7 +297,7 @@ lightPipeline.annotate("Hello world, please annotate my text")
Spark NLP OCR Module is not included within Spark NLP. It is not an annotator and not an extension to Spark ML. You can include it with the following coordinates for Maven:

```bash
com.johnsnowlabs.nlp:spark-nlp-ocr_2.11:2.1.0
com.johnsnowlabs.nlp:spark-nlp-ocr_2.11:2.1.0-rc1
```

### Creating Spark datasets from PDF (To be used with Spark NLP)
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# For a discussion on single-sourcing the version across setup.py and the
# project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='2.1.0', # Required
version='2.1.0.rc1', # Required

# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
Expand Down
6 changes: 3 additions & 3 deletions python/sparknlp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ def start(include_ocr=False):

if include_ocr:
builder \
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0,com.johnsnowlabs.nlp:spark-nlp-ocr_2.11:2.1.0,javax.media.jai:com.springsource.javax.media.jai.core:1.1.3") \
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0-rc1,com.johnsnowlabs.nlp:spark-nlp-ocr_2.11:2.1.0-rc1,javax.media.jai:com.springsource.javax.media.jai.core:1.1.3") \
.config("spark.jars.repositories", "http://repo.spring.io/plugins-release")

else:
builder.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0") \
builder.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0-rc1") \

return builder.getOrCreate()


def version():
print('2.1.0')
print('2.1.0-rc1')
6 changes: 3 additions & 3 deletions src/main/scala/com/johnsnowlabs/nlp/SparkNLP.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ object SparkNLP {

if (includeOcr) {
build
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0,com.johnsnowlabs.nlp:spark-nlp-ocr_2.11:2.1.0,javax.media.jai:com.springsource.javax.media.jai.core:1.1.3")
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0-rc1,com.johnsnowlabs.nlp:spark-nlp-ocr_2.11:2.1.0-rc1,javax.media.jai:com.springsource.javax.media.jai.core:1.1.3")
.config("spark.jars.repositories", "http://repo.spring.io/plugins-release")
} else {
build
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0")
.config("spark.jars.packages", "JohnSnowLabs:spark-nlp:2.1.0-rc1")
}

build.getOrCreate()
}

def version(): Unit = {
println("2.1.0")
println("2.1.0-rc1")
}

}
2 changes: 1 addition & 1 deletion src/main/scala/com/johnsnowlabs/util/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ object Build {
if (version != null && version.nonEmpty)
version
else
"2.1.0"
"2.1.0-rc1"
}
}

0 comments on commit c3110b1

Please sign in to comment.