stanford-nlp-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

Running Stanford corenlp server with French models

泪湿孤枕 提交于 2019-12-22 06:49:17
问题 I am trying to analyse some French text with the Stanford CoreNLP tool (it's my first time trying to use any StanfordNLP software) To do so, I have downloaded the v3.6.0 jar and the corresponding french models. Then I run the server with: java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer As described in this answer, I call the API with: wget --post-data 'Bonjour le monde.' 'localhost:9000/?properties={"parse.model":"edu/stanford/nlp/models/parser/nndep/UD_French.gz",

German corenlp model defaulting to english models

让人想犯罪 __ 提交于 2019-12-12 04:34:14
问题 I use the following command to serve a corenlp server for German language models which are downloaded as jar in the classpath , but it does not output german tags or parse but loads only english models: java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -props ./german.prop german.prop contents: annotators = tokenize, ssplit, pos, depparse, parse tokenize.language = de pos.model = edu/stanford/nlp/models/pos-tagger/german/german-hgc.tagger ner.model = edu/stanford/nlp/models

StanfordCoreNLP differs from StanfordCoreNLPServer

半城伤御伤魂 提交于 2019-12-11 04:43:04
问题 if you run: java -mx3g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -props StanfordCoreNLP-spanish.properties java -mx3g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLP -props StanfordCoreNLP-spanish.properties The second command open a terminal and Spanish parser works fine, but from the Server version it use the English parser and not the Spanish. ~/CoreNLP/stanford-corenlp-full-2015-12-09# java -mx3g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -props

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

Running Stanford corenlp server with French models

我的未来我决定 提交于 2019-12-05 09:59:40
I am trying to analyse some French text with the Stanford CoreNLP tool (it's my first time trying to use any StanfordNLP software) To do so, I have downloaded the v3.6.0 jar and the corresponding french models . Then I run the server with: java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer As described in this answer , I call the API with: wget --post-data 'Bonjour le monde.' 'localhost:9000/?properties={"parse.model":"edu/stanford/nlp/models/parser/nndep/UD_French.gz", "annotators": "parse", "outputFormat": "json"}' -O - but I get the following log + error: [pool-1-thread-1]

edu.stanford.nlp.io.RuntimeIOException: Could not connect to server

拟墨画扇 提交于 2019-12-02 14:08:33
问题 I'm trying to annotate multiple sentences using the CoreNLP server. However, if I try to that with too many sentences I'm getting: Exception in thread "Thread-48" edu.stanford.nlp.io.RuntimeIOException: Could not connect to server: 192.168.108.60:9000 at edu.stanford.nlp.pipeline.StanfordCoreNLPClient$2.run(StanfordCoreNLPClient.java:393) Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://192.168.108.60:9000?properties=%7B+%22inputFormat%22%3A+