服务器运行corenlp server,StanfordCoreNLP与StanfordCoreNLPServer

如果您运行:

java -mx3g -cp“*”edu.stanford.nlp.pipeline.StanfordCoreNLPServer -props StanfordCoreNLP-spanish.properties

java -mx3g -cp“*”edu.stanford.nlp.pipeline.StanfordCoreNLP -props StanfordCoreNLP-spanish.properties

第二个命令打开终端并且西班牙语解析器工作正常,但是从Server版本它使用英语解析器而不是西班牙语。

~/CoreNLP/stanford-corenlp-full-2015-12-09# java -mx3g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -props StanfordCoreNLP-spanish.properties

-- listing properties --

pos.model=edu/stanford/nlp/models/pos-tagger/sp...

ner.model=edu/stanford/nlp/models/ner/spanish.a...

ner.useSUTime=false

parse.model=edu/stanford/nlp/models/lexparser/spa...

tokenize.language=es

annotators=tokenize, ssplit, pos, ner, parse

ner.applyNumericClassifiers=false

Starting server on port 9000 with timeout of 5000 milliseconds.

StanfordCoreNLPServer listening at /0:0:0:0:0:0:0:0:9000

[/0:0:0:0:0:0:0:1:49579] API call w/annotators tokenize,ssplit,parse

El presidente Julio Sanches formo ungrupo de ministros a quienes llamo los cinco economistas magnificos.

[pool-1-thread-1] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator tokenize

[pool-1-thread-1] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ssplit

[pool-1-thread-1] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator parse

[pool-1-thread-1] INFO edu.stanford.nlp.parser.common.ParserGrammar - Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ...

done [0.4 sec].

对于我使用的客户端:

wget --post-data'El presidente Julio Sanches formo ungrupo de ministros a quienes llamo los cinco economicistas magnificos。 'localhost:9000 /?properties = {“tokenize.whitespace”:“true”,“annotators”:“parse”,“outputFormat”:“text”}' - O -

我需要使用西班牙模型文件运行StanfordCoreNLPServer,我需要一个特殊的参数吗?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值