mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Fix Transformer.initialize example (#7963)
This commit is contained in:
parent
cf032ec31e
commit
2320791f6d
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue
Block a user