4.在安装en_core_web_sm-3.2.0.tar.gz版本后,用spacy.load()加载模型时报错:“TypeError: issubclass() arg 1 must be a class” TypeError Traceback (most recent call last) C:\Users\NAVIGA~1\AppData\Local\Temp/ipykernel_24076/572880994.py in <module> ---> 1 import spacy ~\AppData\Roam...
This is a problem that is caused by a compatibility issue with one of the backend packages in python, package "pydantic" Resolution To fix TypeError: issubclass() arg 1 must be a class python -m pip install -U pydantic spacy After running this, the command should execute successfully: pytho...
用spacy.load()加载模型时报错:“TypeError: issubclass() arg 1 must be a class”...
According to this issue, the problem ("TypeError: issubclass() arg 1 must be a class") should only exist for pydantic v1.10.7 and earlier related to the recent release of typing_extensions v4.6.0. My versions are higher, but this error isn't solved. Sign up for free to join this ...
我可以用spacy == 3.0.9和python3.10.12加载en_ner_bc5cdr_md。您可以尝试以下步骤:
Explore the GitHub Discussions forum for explosion spaCy. Discuss code, ask questions & collaborate with the developer community.
tar.gz版本后,用spacy.load()加载模型时报错:“TypeError: issubclass() arg 1 must be a class”...
in pydantic.fields.ModelField._type_analysis File "/root/.pyenv/versions/3.8.16/lib/python3.8/typing.py", line 774, in __subclasscheck__ return issubclass(cls, self.__origin__) TypeError: issubclass() arg 1 must be a class ``` Closes PLAT-443 * Add some comments to request linters...