mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
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`.
This commit is contained in:
parent
305221f3e5
commit
7111b9de2e
|
@ -91,7 +91,7 @@ Match a stream of documents, yielding them in turn.
|
||||||
> ```python
|
> ```python
|
||||||
> from spacy.matcher import PhraseMatcher
|
> from spacy.matcher import PhraseMatcher
|
||||||
> matcher = PhraseMatcher(nlp.vocab)
|
> matcher = PhraseMatcher(nlp.vocab)
|
||||||
> for doc in matcher.pipe(texts, batch_size=50):
|
> for doc in matcher.pipe(docs, batch_size=50):
|
||||||
> pass
|
> pass
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user