stanfordcorenlp调试问题

问题描述:
(torch) dell@dell-Precision-7920-Tower:~/PycharmProjects/projects/COPDclassifica$ /home/dell/anaconda3/envs/torch/bin/python /home/dell/PycharmProjects/projects/COPDclassifica/sssssss/get_w2v_data.py
Traceback (most recent call last):
File “/home/dell/PycharmProjects/projects/COPDclassifica/sssssss/get_w2v_data.py”, line 61, in
words_seg_a, pos_seg_a, nerr_seg_a = a.get_seg()
File “/home/dell/PycharmProjects/projects/COPDclassifica/sssssss/get_w2v_data.py”, line 40, in get_seg
nlp = StanfordCoreNLP(self.stand_path,self.port, self.lang)
File “/home/dell/anaconda3/envs/torch/lib/python3.7/site-packages/stanfordcorenlp/corenlp.py”, line 38, in init
self._check_args()
File “/home/dell/anaconda3/envs/torch/lib/python3.7/site-packages/stanfordcorenlp/corenlp.py”, line 246, in _check_args
raise ValueError(‘memory=’ + self.memory + ’ not supported. Use 4g, 6g, 8g and etc. ')
ValueError: memory=zh not supported. Use 4g, 6g, 8g and etc.
解决方法:将其中的路径改成绝对路径

猜你喜欢

转载自blog.csdn.net/liqiang12689/article/details/104221656