Skip to content

Commit

Permalink
docs: removed multiprocessing from pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEnevoldsen committed Jan 16, 2023
1 parent deb148b commit c224580
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorials/filter_corpus_using_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@
"quality_pipe = nlp.add_pipe(\"textdescriptives/quality\")\n",
"\n",
"# 3. Apply the pipeline to the legal documents\n",
"legal_docs = nlp.pipe(legal[\"text\"], batch_size=100, n_process=1)"
"legal_docs = nlp.pipe(legal[\"text\"])"
]
},
{
Expand Down Expand Up @@ -1043,9 +1043,9 @@
"outputs": [],
"source": [
"# first we apply the pipeline to the other domains\n",
"news_docs = nlp.pipe(news[\"text\"], batch_size=100, n_process=1)\n",
"news_docs = nlp.pipe(news[\"text\"])\n",
"news_docs = list(news_docs)\n",
"speech_docs = nlp.pipe(speech[\"text\"], batch_size=100, n_process=1)\n",
"speech_docs = nlp.pipe(speech[\"text\"])\n",
"speech_docs = list(speech_docs)"
]
},
Expand Down

0 comments on commit c224580

Please sign in to comment.