mirror of https://github.com/explosion/spaCy.git
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
|
> ```python
|
||||||
> trf = nlp.add_pipe("transformer")
|
> trf = nlp.add_pipe("transformer")
|
||||||
> trf.initialize(lambda: [], nlp=nlp)
|
> trf.initialize(lambda: iter([]), nlp=nlp)
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
|
|
Loading…
Reference in New Issue