Permalink
Browse files

fixes for docker notebooks

  • Loading branch information...
mhamilton723 committed Jun 28, 2018
1 parent 5c0e406 commit 05c5e9696f24e6c0d95190048bd201e831208656
Showing with 3 additions and 4 deletions.
  1. +2 −3 notebooks/samples/304 - Medical Entity Extraction.ipynb
  2. +1 −1 tools/docker/bin/launcher
@@ -80,12 +80,11 @@
"outputs": [],
"source": [
"modelName = \"BiLSTM\"\n",
"modelDir = \"models\"\n",
"modelDir = abspath(\"models\")\n",
"if not os.path.exists(modelDir): os.makedirs(modelDir)\n",
"d = ModelDownloader(spark, \"file://\" + modelDir)\n",
"modelSchema = d.downloadByName(modelName)\n",
"nltk.download(\"punkt\", download_dir=modelDir)\n",
"nltk.data.path.append(modelDir)"
"nltk.download(\"punkt\")"
]
},
{
@@ -23,4 +23,4 @@ fi
PYSPARK_DRIVER_PYTHON="jupyter" \
PYSPARK_DRIVER_PYTHON_OPTS="notebook --no-browser --port=$port --ip=*" \
pyspark --master "local[*]" --repositories "$MML_M2REPOS" --packages "$MML_PACKAGE"
pyspark --master "local[2]" --driver-memory 2g --executor-memory 4g --repositories "$MML_M2REPOS" --packages "$MML_PACKAGE"

0 comments on commit 05c5e96

Please sign in to comment.