[v2.1] TextCategorizer fails at inference time because of 'drop' being None #2684
Labels
bug
Bugs and behaviour differing from documentation
feat / textcat
Feature: Text Classifier
🌙 nightly
Discussion and contributions related to nightly builds
How to reproduce the behaviour
Hi,
I just tried the new pre release of spacy 2.1, and there is an issue with the
TextCategorizer
at inference time. The problem is that thedrop
parameter beingNone
in the forward pass break theconcatenate_lists
function. To reproduce:it results in:
And just a comment on the textcat, it's a bit strange that the pretrained vectors are not used by default when available.
btw speed improvement in v2.1 are awesome :) about 30% !
Your Environment
The text was updated successfully, but these errors were encountered: