Closed dheeraj2016 closed 5 years ago
Sorry my mistake, ASP.NET Core is not supported till now
You may try to execute CoreNLP Server as separate Java process and then call it REST api:
@dheeraj2016 I have it worked with .Net Standard Library project. Then you can reference it from .Net Core App. But you will need .Net Framework anyway.
HI Team,
sorry to report a same bug which has been closed before "Bug#23" i think my situation is little different. Environment : .NET Core Web API 2.1 Language : C# OS : Windows 10 pro IDE: Visual Studio 2017 CoreNLP: 3.7.0
User case : Trying to initialize CoreNLP from static main of program.cs using singleton pattern . it gives me above mentioned error.
but if run same class from Console application it run fine for 9 times out of 10, for remaining one it just crashes with giving any error. My code is as below
bool isInitiliazed = false; if (!string.IsNullOrWhiteSpace(pathToModelFolder)) { string currentPath = string.Empty; try { logger.Info("CoreNLP initialisation started"); // Path to the folder with models extracted from
stanford-corenlp-3.7.0-models.jar
// var jarRoot = @"........\data\paket-files\nlp.stanford.edu\stanford-corenlp-full-2016-10-31\models"; var jarRoot = pathToModelFolder; // Text for processingPlease let me know what is wrong , i am doing
thank you Dheeraj Kumar