From e766e8c56d2fe6ddf9800659cd408d8f4b7141a6 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 29 Jan 2021 21:41:17 +1100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sofie Van Landeghem --- spacy/language.py | 2 +- website/docs/api/language.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 372220119..92710024f 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1741,7 +1741,7 @@ class Language: ) raise ValueError(err) pipe = self.get_pipe(pipe_name) - # Update the config accordingly by coping the tok2vec model to all + # Update the config accordingly by copying the tok2vec model to all # sections defined in the listener paths for listener_path in listeners: # Check if the path actually exists in the config diff --git a/website/docs/api/language.md b/website/docs/api/language.md index 15ebb255c..3d60b7750 100644 --- a/website/docs/api/language.md +++ b/website/docs/api/language.md @@ -876,7 +876,7 @@ when loading a config with | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `tok2vec_name` | Name of the token-to-vector component, typically `"tok2vec"` or `"transformer"`.~~str~~ | | `pipe_name` | Name of pipeline component to replace listeners for. ~~str~~ | -| `listeners` | The paths to the listeners, relative to the component config, e.g. `["model.tok2vec"]`. Typically, implementations will only connect to one tok2vec component, `model.tok2vec`, but in theory, custom models can use multiple listeners. The value here can either be an empty list to not replace any listeners, or a _complete_ list of the paths to all listener layers used by the model.~~Iterable[str]~~ | +| `listeners` | The paths to the listeners, relative to the component config, e.g. `["model.tok2vec"]`. Typically, implementations will only connect to one tok2vec component, `model.tok2vec`, but in theory, custom models can use multiple listeners. The value here can either be an empty list to not replace any listeners, or a _complete_ list of the paths to all listener layers used by the model that should be replaced.~~Iterable[str]~~ | ## Language.meta {#meta tag="property"}