python - Why my computer declined my requests? -
from stanza.nlp.corenlp import corenlpclient client = corenlpclient(server='http://localhost:9000', default_annotators=['ssplit', 'tokenize', 'lemma', 'pos', 'ner']) annotated = client.annotate('this example document. here second sentence') sentence in annotated.sentences: print('sentence', sentence) token in sentence: print(token.word, token.lemma, token.pos, token.ner)
error:
urllib3.exceptions.newconnectionerror: <urllib3.connection.httpconnection object @ 0x00000180c85765f8>: failed establish new connection: [winerror 10061] 由于目标计算机积极拒绝,无法连接。
i learning python code of stanford corenlp. first trial failed stated above. not know httpconnection, think error means computer(localhost) declined requests. why?
any appreciated!
Comments
Post a Comment