Closed prigioni closed 5 years ago
Hello Prigioni, Could you be more specific about what the error you are facing? The README documentation provides an example of use: https://github.com/stanfordnlp/python-stanford-corenlp
from stanfordcorenlp import StanfordCoreNLP nlp = StanfordCoreNLP(r'/Users/lqm/Desktop/stanford-corenlp-full-2018-01-31')
Traceback (most recent call last): File "/Applications/anaconda3/lib/python3.6/site-packages/psutil/_psosx.py", line 330, in wrapper return fun(self, *args, **kwargs) File "/Applications/anaconda3/lib/python3.6/site-packages/psutil/_psosx.py", line 515, in connections rawlist = cext.proc_connections(self.pid, families, types) PermissionError: [Errno 1] Operation not permitted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/lqm/Desktop/python3/test_stanfordcorenlp.py", line 9, in
why?
when I sudo python, it done
You can insert this line
os.environ['CORENLP_HOME'] = "/Users/lqm/Desktop/stanford-corenlp-full-2018-01-31"
how to use