Skip to content

Commit

Permalink
Small update to quick start instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Jan 8, 2018
1 parent 1ac8043 commit 5bcd2c6
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions docs/quickstart.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,26 @@ <h1 class="doc-title"><i class="icon fa fa-paper-plane"></i> SparkNLP - Quick St
<section id="concepts-section" class="doc-section">
<h2 class="section-title">Requirements</h2>
<div class="section-block">
<p>Since SparkNLP runs on top of Apache Spark 2.1.2,
it is needed to have basic knowledge and a working environment.
Refer to its
<p>SparkNLP runs on top of Apache Spark 2.1.2,
it is advised to have basic knowledge of the framework and a working environment
before using Spark-NLP. Refer to its
<a href="http://spark.apache.org/docs/2.1.2/index.html">documentation</a> to
get started with Spark.
</p>
<p>
To use the most recent version just add the --packages JohnSnowLabs:spark-nlp:1.2.5 to you spark command
<div>spark-shell --packages JohnSnowLabs:spark-nlp:1.2.5</div>
<div>pyspark --packages JohnSnowLabs:spark-nlp:1.2.5</div>
<div>spark-submit --packages JohnSnowLabs:spark-nlp:1.2.5</div>
To start using the library, execute any of the following lines
depending on your desired use case:
</p>
</p>
<pre><code class="language-python">spark-shell --packages JohnSnowLabs:spark-nlp:1.2.5
pyspark --packages JohnSnowLabs:spark-nlp:1.2.5
spark-submit --packages JohnSnowLabs:spark-nlp:1.2.5
</code></pre>
<p>
Another way is including downloadable snapshot jar in spark classpath,
Another way to use the library is by appending jar file into spark classpath,
which can be downloaded
<a href="http://repo1.maven.org/maven2/com/johnsnowlabs/nlp/spark-nlp_2.11/1.2.5/spark-nlp_2.11-1.2.5.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.
then, run spark-shell or spark-submit with appropriate <b>--jars
/path/to/spark-nlp_2.11-1.2.5.jar</b> to use the library in spark.
</p>
<p>
For further alternatives and documentation check out our README page in <a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a>.
Expand Down

0 comments on commit 5bcd2c6

Please sign in to comment.