首页 文章

如何在Windows 10下启动Stanford CoreNLP服务器以进行远程访问(而不是localhost)

提问于
浏览
0

服务器在本地模式下运行良好:我可以在localhost:9000或192.168.1.nn:9000下正确使用Stanford CoreNLP网页 .

不幸的是,当我从另一台计算机(在LAN上)调用网页时(我称之为192.168.nn.nn:9000),我在互联网浏览器中出现了ERR_CONNECTION_TIMED_OUT错误 . 我注意到端口无法访问(通过telnet) .

如何启动StanfordCoreNLP服务器以便远程加入(在Windows 10平台上)?

命令行是:

java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer

输出是:

[main] INFO CoreNLP - --- StanfordCoreNLPServer#main() called ---
[main] INFO CoreNLP - setting default constituency parser
[main] INFO CoreNLP - warning: cannot find edu/stanford/nlp/models/srparser/englishSR.ser.gz
[main] INFO CoreNLP - using: edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz instead
[main] INFO CoreNLP - to use shift reduce parser download English models jar from:
[main] INFO CoreNLP - http://stanfordnlp.github.io/CoreNLP/download.html
[main] INFO CoreNLP -     Threads: 4
[main] INFO CoreNLP - Starting server...
[main] INFO CoreNLP - StanfordCoreNLPServer listening at /0:0:0:0:0:0:0:0:9000

它还推出了以下变体:

java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -serverProperties _myStanfordServerCoreNLP-french.properties -port 9000 -timeout 15000

是否有一些服务器属性要定义,但哪些(我几乎找不到在线文档)?

非常感谢您的帮助 .

L.

1 回答

  • 0

    似乎应用最新的Windows 10更新,然后重新启动已解决该问题 .

    所以我理解不需要通过LAN共享服务器的特定设置 .

    L.

相关问题