psutil.AccessDenied when using StanfordCoreNLP in Pycharm? [duplicate]
问题 This question already has answers here : psutil.AccessDenied Error while trying to load StanfordCoreNLP (3 answers) Closed 6 months ago . # coding=utf-8 from stanfordcorenlp import StanfordCoreNLP nlp = StanfordCoreNLP(r'/Users/silas/stanford-corenlp/', lang='zh') sentence = '清华大学位于北京。' print nlp.word_tokenize(sentence) print nlp.pos_tag(sentence) print nlp.ner(sentence) print nlp.parse(sentence) print nlp.dependency_parse(sentence) nlp.close() I'm using Mac. Java, NLKT, and Stanforcorenlp