mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-29 10:13:19 +03:00
Fix default config init in Transformer API docs (#6781)
This commit is contained in:
parent
c54c300680
commit
d0236136a2
|
@ -56,9 +56,10 @@ on the transformer architectures and their arguments and hyperparameters.
|
||||||
> #### Example
|
> #### Example
|
||||||
>
|
>
|
||||||
> ```python
|
> ```python
|
||||||
> from spacy_transformers import Transformer, DEFAULT_CONFIG
|
> from spacy_transformers import Transformer
|
||||||
|
> from spacy_transformers.pipeline_component import DEFAULT_CONFIG
|
||||||
>
|
>
|
||||||
> nlp.add_pipe("transformer", config=DEFAULT_CONFIG)
|
> nlp.add_pipe("transformer", config=DEFAULT_CONFIG["transformer"])
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Setting | Description |
|
| Setting | Description |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user