Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoreNLP Server #125

Closed
GeorgeS2019 opened this issue Sep 28, 2022 · 6 comments
Closed

CoreNLP Server #125

GeorgeS2019 opened this issue Sep 28, 2022 · 6 comments

Comments

@GeorgeS2019
Copy link

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
Copy link
Owner

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
Copy link
Author

@sergey-tihon

It fails here

var sentences = sentencesAnnotationClass.getClasses().Select(document.get).ToList();

The returned sentences was null

@GeorgeS2019
Copy link
Author

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

@GeorgeS2019
Copy link
Author

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
Copy link
Author

GeorgeS2019 commented Sep 29, 2022

@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

props.setProperty("annotators", "tokenize, ssplit, pos, lemma, ner, parse, dcoref");

@GeorgeS2019 GeorgeS2019 reopened this Sep 29, 2022
@GeorgeS2019
Copy link
Author

GeorgeS2019 commented Feb 29, 2024

This is well addressed now with 4.5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants