smilli / py-corenlp

Python wrapper for Stanford CoreNLP
353 stars 75 forks source link

Is a server really necessary? #36

Open steve3p0 opened 4 years ago

steve3p0 commented 4 years ago

Can someone explain to me why a server is required to use py-corenlp?

zhangyilun commented 4 years ago

The server is to host the CoreNLP using java and then the package is doing corenlp by calling the server you hosted. This make the inference much faster than using the original nltk-way, which doesn't run the server and uses the corenlp jar files in python.