corenlp-server

Stanford CoreNLP Server disable logging

一曲冷凌霜 提交于 2020-01-04 22:44:28
问题 I have the feeling that the logging of the server is quite exhaustive. Is there a way to disable or reduce the logging output? It seems that if I send a document to the server it will write the content to stdout which might be a performance killer. Can I do that somehow? Update I found a way to suppress the output from the server. Still my question is how and if I can do this using a command line argument for the actual server. However for a dirty workaround it seems the following can ease

How to use a custom TokensRegex rules annotator with Stanford CoreNLP Server?

不羁的心 提交于 2019-12-10 15:53:05
问题 The TokensRegex rules color annotator ( stanford-corenlp-full-2016-10-31/tokensregex/color.rules.txt ) loads successfully when using CoreNLP through command line but fails for the web server with java.lang.IllegalArgumentException: Unknown annotator: color . Setup # custom.properties annotators=tokenize,ssplit,pos,lemma,ner,regexner,color customAnnotatorClass.color = edu.stanford.nlp.pipeline.TokensRegexAnnotator color.rules = tokensregex/color.rules.txt Command Line $ java -cp "*" -Xmx2g edu