graph4ai / graph4nlp

Graph4nlp is the library for the easy use of Graph Neural Networks for NLP. Welcome to visit our DLG4NLP website (https://dlg4nlp.github.io/index.html) for various learning resources!
Apache License 2.0
1.67k stars 201 forks source link

"/opt/graph4nlp/graph4nlp/pytorch/data/dataset.py:596: RuntimeWarning: Failed to parse: http://localhost:9000 warnings.warn(RuntimeWarning(msg))" #593

Closed LN-Curiosity closed 1 year ago

LN-Curiosity commented 1 year ago

Now i have solved this problem. Two reasons lead to this error. 1) I opened a proxy (close the proxy); 2) I download the corenlp of a mistaken version (python lib stanfordcorenlp 3.9.1, stanford-corenlp-full-2018-02-27 .zip works).

In addition, you can check whether the stanford-corenlp is installed correctly by this:

from stanfordcorenlp import StanfordCoreNLP nlp = StanfordCoreNLP('/opt/stanford-corenlp-full-2018-02-27', port=9000) nlp.word_tokenize('This is an example of tokenziation.')