From d0236136a22d0b3019c6a68343c26e193d7f5510 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Thu, 21 Jan 2021 16:18:03 +0100 Subject: [PATCH] Fix default config init in Transformer API docs (#6781) --- website/docs/api/transformer.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/docs/api/transformer.md b/website/docs/api/transformer.md index a38b95a8b..5aaa1d23e 100644 --- a/website/docs/api/transformer.md +++ b/website/docs/api/transformer.md @@ -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 |