mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 12:50:20 +03:00
Doc fixes
This commit is contained in:
parent
a8ceeb5ccd
commit
2cfa4b77eb
|
@ -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):
|
||||
...
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user