mirror of
https://github.com/explosion/spaCy.git
synced 2025-10-30 15:37:29 +03:00
* Modify `Language._link_components` to reset listener map and re-add
all components from scratch.
* Run `Language._link_components` when pipes are added or removed.
* Fix replace listeners for sourced components:
* Make sure that the source pipeline has the listener state
corresponding to the source pipeline and not the new pipeline when
listeners are replaced.
* Remove removal of unused listeners (this is now always updated by
`_link_components` at the point where pipes are added).
* Remove incorrect `replace listeners` after the pipeline is created.
* For components where `replace_listeners` was specified, the
listeners have already been replaced when the component was
sourced+added.
* This incorrectly ran `replace_listeners` twice for components
that had `replace_listeners` AND the listened-to component was
also sourced into the pipeline (but at this point the
listened-to component is irrelevant for those components).
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_analysis.py | ||
| test_annotates_on_update.py | ||
| test_attributeruler.py | ||
| test_edit_tree_lemmatizer.py | ||
| test_entity_linker.py | ||
| test_entity_ruler.py | ||
| test_functions.py | ||
| test_initialize.py | ||
| test_lemmatizer.py | ||
| test_models.py | ||
| test_morphologizer.py | ||
| test_pipe_factories.py | ||
| test_pipe_methods.py | ||
| test_sentencizer.py | ||
| test_senter.py | ||
| test_span_ruler.py | ||
| test_spancat.py | ||
| test_tagger.py | ||
| test_textcat.py | ||
| test_tok2vec.py | ||