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"}