Skip to content

Commit

Permalink
Website update and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Nov 17, 2017
1 parent a5fe72a commit 20efe4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
15 changes: 7 additions & 8 deletions docs/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ <h4 id="DocumentAssembler" class="section-block"> 1. DocumentAssembler: Getting
which may be used by annotators down the road
<br><b>Example:</b><br>
</p>
<pre><code class="language-python">import
com.johnsnowlabs.nlp._import
com.johnsnowlabs.nlp.annotators._import
org.apache.spark.ml.Pipelineval
<pre><code class="language-python">from sparknlp.annotator import *
from sparknlp.common import *
from sparknlp.base import *
from pyspark.ml import Pipeline
documentAssembler = new DocumentAssembler() \
.setInputCol("text") \
.setOutputCol("document")</code></pre>
Expand Down Expand Up @@ -146,10 +146,9 @@ <h4 id="DocumentAssembler" class="section-block"> 1. DocumentAssembler: Getting
which may be used by annotators down the road
<br><b>Example:</b><br>
</p>
<pre><code class="language-python">import
com.johnsnowlabs.nlp._import
com.johnsnowlabs.nlp.annotators._import
org.apache.spark.ml.Pipelineval
<pre><code class="language-python">import com.johnsnowlabs.nlp._
import com.johnsnowlabs.nlp.annotators._
import org.apache.spark.ml.Pipeline
documentAssembler = new DocumentAssembler()
.setInputCol("text")
.setOutputCol("document")</code></pre>
Expand Down
12 changes: 5 additions & 7 deletions docs/quickstart.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,20 @@ <h2 class="section-title">Requirements</h2>
get started with Spark.
</p>
<p>
We are working on updating this page since we published the library on public
repos to make it easier to use and with spark-packages. This will allow to use pyspark library as well.
Stay tuned for updates in this section.
To use the most recent version just add the --packages JohnSnowLabs:spark-nlp:1.0.0 to you spark command
<div>spark-shell --packages JohnSnowLabs:spark-nlp:1.2.3</div>
<div>pyspark --packages JohnSnowLabs:spark-nlp:1.2.3</div>
<div>spark-submit --packages JohnSnowLabs:spark-nlp:1.2.3</div>
</p>
<p>
You can follow up-to-date instructions in our README page in <a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a>.
Another way is including downloadable snapshot jar in spark classpath,
which can be downloaded
<a href="http://repo1.maven.org/maven2/com/johnsnowlabs/nlp/spark-nlp_2.11/1.2.3/spark-nlp_2.11-1.2.3.jar">here</a>
then, run spark-shell or spark-submit with <b>--jars
/path/to/spark-nlp.jar</b> to use the library in scala spark.
</p>
<p>
To use pyspark now, you may have to clone the repo, and stand inside the python
folder to make sparknlp module avaiable, while also adding the jar to pyspark with
--jars as above
For further alternatives and documentation check out our README page in <a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a>.
</p>
</div>
</section>
Expand Down

0 comments on commit 20efe4a

Please sign in to comment.