Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/root/miniconda3/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/root/test/EntRelKG/entRelKg.py", line 38, in __predict
trainer.predict(dataset_path=run_args.dataset_path, types_path=run_args.types_path,
File "/root/test/EntRelKG/EntRelKG/trainer.py", line 385, in predict
dataset = input_reader.read(dataset_path, 'dataset')
File "/root/test/EntRelKG/EntRelKG/input_reader.py", line 244, in read
self._parse_dataset(dataset_path, dataset)
File "/root/test/EntRelKG/EntRelKG/input_reader.py", line 251, in _parse_dataset
self._parse_document(document, dataset)
File "/root/test/EntRelKG/EntRelKG/input_reader.py", line 261, in _parse_document
print(self._nlp(document))
可能问题在于之后安装的内容与之前安装的包之间存在版本冲突,我这里的self._nlp是调用了spacy模块,但是另一个模块Flask会更改这个模块,导致en-core-web-sm和click方法缺失不可用了,所以这里提示NoneType(话说回来吐槽一下,这个方法缺失了,为什么不能准确提示到这个模块调用方法缺失了,正常不应该继续走进去这个函数里,找这个函数内还缺失了什么东西吗,不是很理解)
总之就是,根据你的函数,看你的模块哪个有问题,重装一下就可以,我这里重装一下spacy就好了(pip install spacy == 你要的版本)