sergey-tihon / Stanford.NLP.NET

Stanford NLP for .NET
http://sergey-tihon.github.io/Stanford.NLP.NET/
MIT License
595 stars 123 forks source link

CoreNLP Server #125

Closed GeorgeS2019 closed 6 months ago

GeorgeS2019 commented 1 year ago

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

sergey-tihon commented 1 year ago

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

GeorgeS2019 commented 1 year ago

@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 commented 1 year ago

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

GeorgeS2019 commented 1 year ago

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 commented 1 year ago

@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 commented 6 months ago

This is well addressed now with 4.5.6