Skip to content

Instantly share code, notes, and snippets.

@romeokienzler
Created October 4, 2018 13:11
Show Gist options
  • Save romeokienzler/24a3f9ed53d608b9df56ad64a7557278 to your computer and use it in GitHub Desktop.
Save romeokienzler/24a3f9ed53d608b9df56ad64a7557278 to your computer and use it in GitHub Desktop.
How to install Spark-NLP in IBM Watson Studio
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting spark-nlp\n",
" Downloading https://files.pythonhosted.org/packages/67/98/1be13032768350827c2de7979c8106ea16bef39db606b1190e801c302ee2/spark_nlp-1.6.3-py2.py3-none-any.whl (72.8MB)\n",
"\u001b[K 100% |################################| 72.8MB 16kB/s eta 0:00:01[K 52% |################ | 38.5MB 74.5MB/s eta 0:00:01\n",
"\u001b[?25hInstalling collected packages: spark-nlp\n",
"Successfully installed spark-nlp-1.6.3\n"
]
}
],
"source": [
"!pip install spark-nlp"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from sparknlp.annotator import SentenceDetector"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.5 with Spark",
"language": "python3",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.4"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment