Skip to content

Commit

Permalink
fix: TransformerListener with TextCatEnsemble (explosion#6951)
Browse files Browse the repository at this point in the history
* bug: Regression test
Issue explosion#6946

* fix: Fix issue explosion#6946

* chore: Remove regression test
  • Loading branch information
reneoctavio authored Feb 6, 2021
1 parent 433835d commit 59271e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spacy/ml/models/textcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def init_ensemble_textcat(model, X, Y) -> Model:
model.get_ref("maxout_layer").set_dim("nO", tok2vec_width)
model.get_ref("maxout_layer").set_dim("nI", tok2vec_width)
model.get_ref("norm_layer").set_dim("nI", tok2vec_width)
model.get_ref("norm_layer").set_dim("nO", tok2vec_width)
init_chain(model, X, Y)
return model

Expand Down

0 comments on commit 59271e8

Please sign in to comment.