CoreNLP
CoreNLP copied to clipboard
CoreNLP on Windows as a Service
Has anyone tried setting up the CoreNLP package as a service on Windows ?
I setup a .bat file that has the follwing content:
java -mx8g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9005
Next I created a service using the sc command from within Windows. But it does not seem to work.
_Ben
We have no experience with running a server on Windows, though we believe it should work. If someone would like to document how to do it, we'd happily add the documentation to the github.io site! (Please include what version of Windows it is for.)
Manning,
We used NSSM(non-sucking service manager) to setup CoreNLP as a service. Other service wrappers like YAJSW or Tanuki Service Wrapper can also be used.
Please find attached a document that can be used for installation.
Thx and rgds Ben CoreNLP Service Setup.pdf
Hi Ben @i2dwhadmn,
I followed your instruction and had it installed on the windows services but it won't start.
When I try to running CoreNLP manually its giving me following error.
"Windows could not start the CoreNLP service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator."
I am running as an adminstrator on the system. but I am not running a Windows Server version; I am basically on Windows 7.
Please let me know if there is anything I need to do to make this work.
Greatly appreciate your help!
Thanks, Shaq
Have you installed NSSM (service manager) ? Also does CoreNLP start when you initiate from the command line ?
_Ben
From: shariq02ca [mailto:[email protected]] Sent: Monday, May 28, 2018 12:27 PM To: stanfordnlp/CoreNLP [email protected] Cc: Joseph, Benjieve [email protected]; Mention [email protected] Subject: Re: [stanfordnlp/CoreNLP] CoreNLP on Windows as a Service (#435)
Hi Ben @i2dwhadmnhttps://github.com/i2dwhadmn,
I followed your instruction and had it installed on the windows services but it won't start.
When I try to running CoreNLP manually its giving me following error.
"Windows could not start the CoreNLP service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator."
I am running as an adminstrator on the system. but I am not running a Windows Server version; I am basically on Windows 7.
Please let me know if there is anything I need to do to make this work.
Greatly appreciate your help!
Thanks, Shaq
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/stanfordnlp/CoreNLP/issues/435#issuecomment-392565815, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYtakiHXPFU-RO6Vb0FjGUUUkCnuloeBks5t3CVXgaJpZM4NebnM.
Hey Ben @i2dwhadmn,
Thanks for your quick response!!!
I didn't install NSSM; I placed it in the c: drive and used it to install CoreNLP. as per the instruction on the PDF.
https://nssm.cc/usage
what command do I use to initiate CoreNLP from cmd?
Thanks for your help!
Hey Ben,
Please see screen shot.
Hi Ben @i2dwhadmn,
Yes it is working when I am initiating from command line using:
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -annotators "tokenize,ssplit,pos,lemma,parse,sentiment" -port 9000 -timeout 30000
Now create a batch file which is based on the command line:
-
Copy/paste CoreNLP start-up script <java -mx8g -cp "C:\stanford- corenlp-full-2016-10-31\*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9005 -timeout 15000>
-
Call it CoreNLP.bat
Extract the NSSM source files to a local directory.
You will have to use NSSM to install the service. The document has specific steps to follow:
Install CoreNLP service via NSSM A) Open Windows cmd and change directory to <C:\nssm-2.24\win64>
B) Run command <nssm install CoreNLP>
C) If prompted, click “Yes” on OS warning to allow NSSM service installer wizard to open
D) Under “Application” tab, set the following: Path –-Absolute path of batch file created in part 1 --Leave everything else as default
[cid:[email protected]]
For “Details” tab, set the following: Display name: CoreNLP Description: Stanford CoreNLP Startup type: Automatic
[cid:[email protected]]
E) Click “Install service” and verify you get below confirmation
[cid:[email protected]]
Part 4: Verification Now CoreNLP is a service but needs to be manually started for the first time:
A) Find CoreNLP in Windows services and start the service
Thx and rgds Ben
From: shariq02ca [mailto:[email protected]] Sent: Monday, May 28, 2018 3:14 PM To: stanfordnlp/CoreNLP [email protected] Cc: Joseph, Benjieve [email protected]; Mention [email protected] Subject: Re: [stanfordnlp/CoreNLP] CoreNLP on Windows as a Service (#435)
Hi Ben @i2dwhadmnhttps://github.com/i2dwhadmn,
Yes it is working when I am initiating from command line using:
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -annotators "tokenize,ssplit,pos,lemma,parse,sentiment" -port 9000 -timeout 30000
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/stanfordnlp/CoreNLP/issues/435#issuecomment-392589189, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYtakrxBkQqp5wi1TxnPlIJD0cJjmR6uks5t3EyBgaJpZM4NebnM.
I am experience the same problem. I followed the steps as described in the PDF. It is not starting. PLease help