mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
Merge branch 'bugfix/multiple-replace-listeners' of https://github.com/adrianeboyd/spaCy into bugfix/multiple-replace-listeners
This commit is contained in:
commit
138185248d
|
@ -188,7 +188,7 @@ def test_tok2vec_listener(with_vectors):
|
||||||
for tag in t[1]["tags"]:
|
for tag in t[1]["tags"]:
|
||||||
tagger.add_label(tag)
|
tagger.add_label(tag)
|
||||||
|
|
||||||
# Check that the Tok2Vec component finds it listeners
|
# Check that the Tok2Vec component finds its listeners
|
||||||
assert tok2vec.listeners == [tagger_tok2vec]
|
assert tok2vec.listeners == [tagger_tok2vec]
|
||||||
optimizer = nlp.initialize(lambda: train_examples)
|
optimizer = nlp.initialize(lambda: train_examples)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user