Doc fixes

This commit is contained in:
shadeMe 2023-07-05 12:50:19 +02:00
parent a8ceeb5ccd
commit 2cfa4b77eb
No known key found for this signature in database
GPG Key ID: 6FCA9FC635B2A402

View File

@ -1,6 +1,5 @@
# Listeners
- [Listeners](#listeners)
- [1. Overview](#1-overview)
- [2. Initialization](#2-initialization)
- [2A. Linking listeners to the embedding component](#2a-linking-listeners-to-the-embedding-component)
@ -224,7 +223,7 @@ Note that this functionality (running the replacement for a transformer listener
`spacy-transformers` 1.0.5.
In spaCy 3.7, `Language.replace_listeners` was updated to pass the following additional arguments to the `replace_listener` callback:
the listener to be replaced, the `tok2vec`/`transformer` pipe from which the new model was copied. To maintain backwards-compatiblity,
the listener to be replaced and the `tok2vec`/`transformer` pipe from which the new model was copied. To maintain backwards-compatiblity,
the method only passes these extra arguments for callbacks that support them:
```
@ -233,5 +232,4 @@ def replace_listener_pre_37(copied_tok2vec_model):
def replace_listener_post_37(copied_tok2vec_model, replaced_listener, tok2vec_pipe):
...
```