WordTokenizer Error

Hi,

I’m getting errors when I called the following code. I look in the forums but there isn’t a clear answer. Can someone point me to the right direction? I’m pretty new with this.

Thanks!

spacy = WordTokenizer()

nlp = spacy.blank(lang, disable=["parser", "tagger", "ner"])

TypeError: blank() got an unexpected keyword argument ‘disable’

For those who have the same issue, you have to install spacy version 2.2.4.

As an update to this thread (on May 4, 2021) Fastai library version 2.3.1 supports Spacy version 3.0.* See https://github.com/fastai/fastai/issues/3338

The TypeError: blank() got an unexpected keyword argument ‘disable’ issue is resolved without downgrading Spacy.

1 Like