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:
Álvaro Abella Bascarán 2020-06-30 20:00:50 +02:00 committed by GitHub
parent 8b0f749606
commit ff0dbe5c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
> ``` > ```