Open LuoXiaoxi-cxq opened 1 month ago
If all you want to do is train a model, I recommend just disabling the spacy integration by commenting out the line
File "D:\postgraduate\research\parsing\self-attentive-parser\src\benepar\__init__.py", line 20, in <module>
from .integrations.spacy_plugin import BeneparComponent, NonConstituentException
Spacy integration is for inference time only.
No idea what's going on with this error. It sounds like it's inside some libraries, and didn't exist with the versions of those libraries I used way back when releasing benepar. It's disappointing if the underlying cause is that the libraries have introduced bugs or broken backwards compatibility. Here are the versions I have for one of my archived working setups.
pydantic 1.7.3
spacy 3.0.1
spacy-legacy 3.0.1
typing-extensions 3.7.4.3
Thank you for your response. I once tried to downgrade spacy to 3.5.0, and I encountered the following error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
en-core-web-md 3.7.1 requires spacy<3.8.0,>=3.7.2, but you have spacy 3.5.0 which is incompatible.
However, In your README, you says
The recommended way of using benepar is through integration with spaCy. If using spaCy, you should install a spaCy model for your language. For English, the installation command is:
$ python -m spacy download en_core_web_md
It seems that en_core_web_md
requires a higher version of spacy
. Is that right?
I wanted to train a Chinese model and ran the following command from EXPERIMENTS.md:
However, I encountered this error:
This issue says installing two packages
chromadb
andpydantic
will work, so I installed them. I ranNow, I have
However, the problem still exists. According to this issue, this problem should only exist for
pydantic
v1.10.7 and earlier, related to the recent release oftyping_extensions
v4.6.0. I installed higher versions, but it didn't solve this error.