嘿,我想用斯德福德文字與斯坦福NLP服務器。我測試了http://corenlp.run/,它在德語中工作正常。如果我試試我自己的機器 使用斯德哥爾摩NLP服務器「無法處理傳入註釋」在德國
對Java -mx4g -cp 「*」 edu.stanford.nlp.pipeline.StanfordCoreNLPServer [港口] [超時]
它只是在工作英語。如果我選擇德國我得到錯誤信息
無法處理傳入的註釋
命令行顯示:
顯示java.lang.NullPointerException在 java.util.Properties $ LineReader.readLine(Properties.java:434)at java.util.Properties.load0(Properties.java:353)at java.util.Properties.load(Properties.java:341)at edu.stanford.nlp。 pipeline.S tanfordCoreNLPServer $ CoreNLPHandler.getProperties(StanfordCoreNLPServer.java:681) 在 edu.stanford.nlp.pipeline.StanfordCoreNLPServer $ CoreNLPHandler.handle(StanfordCoreNLPServer.java:540) 在com.sun.net.httpserver.Filter $ Chain.doFilter (Filter.java:79)at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)at com.sun.net.httpserver.Filter $ Chain.doFilter(Filter.java:82)at sun .net.httpserver.ServerImpl $ Exchange $ LinkHandler.handle(ServerImpl.java:675) at com.sun.net.httpserver.Filter $ Chain.doFilter(Filter.java:79)at sun.net.httpserver.ServerImpl $ Exchange.run(ServerImpl.java:647)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) a牛逼 java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:617) 在java.lang.Thread.run(Thread.java:745)
我quess我要補充德國.jar文件在某處,但我無法找到如何和在哪裏?
順便說一句,3.7.0目前不在Maven中,所以將它添加到pom.xml中將不起作用。 – StanfordNLPHelp