mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +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
|
||||
>
|
||||
> ```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 |
|
||||
|
|
Loading…
Reference in New Issue
Block a user