Fix Transformer.initialize example (#7963)

This commit is contained in:
Adriane Boyd 2021-04-30 12:21:31 +02:00 committed by GitHub
parent cf032ec31e
commit 2320791f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ by [`Language.initialize`](/api/language#initialize).
>
> ```python
> trf = nlp.add_pipe("transformer")
> trf.initialize(lambda: [], nlp=nlp)
> trf.initialize(lambda: iter([]), nlp=nlp)
> ```
| Name | Description |