From ff0dbe5c6413b62a40f3268987844f0ce2a34a16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Abella=20Bascar=C3=A1n?= Date: Tue, 30 Jun 2020 20:00:50 +0200 Subject: [PATCH] Fix in docs: pipe(docs) instead of pipe(texts) (#5680) Very minor fix in docs, specifically in this part: ``` matcher = PhraseMatcher(nlp.vocab) > for doc in matcher.pipe(texts, batch_size=50): > pass ``` `texts` suggests the input is an iterable of strings. I replaced it for `docs`. --- website/docs/api/phrasematcher.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/phrasematcher.md b/website/docs/api/phrasematcher.md index a72277420..49211174c 100644 --- a/website/docs/api/phrasematcher.md +++ b/website/docs/api/phrasematcher.md @@ -91,7 +91,7 @@ Match a stream of documents, yielding them in turn. > ```python > from spacy.matcher import PhraseMatcher > matcher = PhraseMatcher(nlp.vocab) -> for doc in matcher.pipe(texts, batch_size=50): +> for doc in matcher.pipe(docs, batch_size=50): > pass > ```