如何修复 spaCy en_model 与当前 spaCy 版本 (2.3.2) 不兼容的问题?

Ste*_*veS 1 model named-entity-recognition python-3.x spacy

当我运行 NER 模型时,我得到:

UserWarning: [W031] Model 'en_model' (0.0.0) requires spaCy v2.2 and is incompatible with the current spaCy version (2.3.2)
Run Code Online (Sandbox Code Playgroud)

请告知我该如何修复它?

Python 3.7.9、spaCy 2.3.2、Ubuntu 18.04。

Ste*_*veS 5

通过将 spaCy 降级至 2.2.4 来解决。

pip3 install spacy==2.2.4
Run Code Online (Sandbox Code Playgroud)