Stanford.NLP.NET icon indicating copy to clipboard operation
Stanford.NLP.NET copied to clipboard

CoreNLP Server

Open GeorgeS2019 opened this issue 3 years ago • 5 comments

https://stanfordnlp.github.io/CoreNLP/corenlp-server.html#getting-started

Could the current .NET Core version provides CoreNLP server or it needs to be ported over to .NET Core using the latest IKVM?

FYI: .NET client to CoreNLP server

GeorgeS2019 avatar Sep 28 '22 09:09 GeorgeS2019

I do not see much value in running Sever on top of IKVM. You can just start it as Java process and have native performance.

It was possible to use this library as a client for CoreNLP Server (but I have not tried with .NET Core) http://sergey-tihon.github.io/Stanford.NLP.NET/#/corenlp/Server

sergey-tihon avatar Sep 28 '22 11:09 sergey-tihon

@sergey-tihon

It fails here https://github.com/sergey-tihon/Stanford.NLP.NET/blob/eefbfb549f138258d161c2184b80f57d003df035/tests/Stanford.NLP.CoreNLP.Tests/StanfordServer.cs#L40

The returned sentences was null

GeorgeS2019 avatar Sep 29 '22 14:09 GeorgeS2019

I could get CoreNLPClient.Net .NET reimplementation of the Stanza client - working

GeorgeS2019 avatar Sep 29 '22 18:09 GeorgeS2019

It was possible to use this library as a client for CoreNLP Server (but I have not tried with .NET Core) http://sergey-tihon.github.io/Stanford.NLP.NET/#/corenlp/Server

I think the code generally works but must feed a minimum of 2 sentences. Not one;.)

GeorgeS2019 avatar Sep 29 '22 20:09 GeorgeS2019

@sergey-tihon With the way I set up the CoreNLP server, simply unzip the stanford-corenlp-4.5.0.zip This works props.setProperty("annotators", "tokenize, ssplit, pos, lemma, ner");

But not when additional "parse, dcoref" are added https://github.com/sergey-tihon/Stanford.NLP.NET/blob/eefbfb549f138258d161c2184b80f57d003df035/tests/Stanford.NLP.CoreNLP.Tests/StanfordServer.cs#L23

GeorgeS2019 avatar Sep 29 '22 21:09 GeorgeS2019

This is well addressed now with 4.5.6

GeorgeS2019 avatar Feb 29 '24 16:02 GeorgeS2019