2016-08-02 3 views
0

난 그냥 다운로드하고 다음 명령을 사용하여 Standfor NLP 3.6.0 http://stanfordnlp.github.io/CoreNLP/index.html 을 실행 : 나는 POS, 토큰 화와 같은 다른 주석 자 테스트스탠포드 NLP 서버 :: 알 수없는 주석 자 : 감정

java -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer --public --port 1062 

을하고 그들은 단지 확인 작업 . 나는 [http://stanfordnlp.github.io/CoreNLP/index.html#download] 확실히 내가 무엇을 놓치고 있지 I 다운로드 페이지에서받은 모든 파일을 업로드

java.lang.IllegalArgumentException: Unknown annotator: sentiment 
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.ensurePrerequisiteAnnotators(StanfordCoreNLP.java:281) 
    at edu.stanford.nlp.pipeline.StanfordCoreNLPServer$CoreNLPHandler.getProperties(StanfordCoreNLPServer.java:476) 
    at edu.stanford.nlp.pipeline.StanfordCoreNLPServer$CoreNLPHandler.handle(StanfordCoreNLPServer.java:350) 
    at 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) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

: 나는 실행하려고 할 때, 감정의 주석 자들은 [http://nlp.stanford.edu/sentiment/] 나는 다음과 같은 오류를 얻을?

답변

0

같은 문제가 발생하는 경우 해당 웹 사이트가 아닌 github에서 프로젝트를 다운로드하십시오. models 병, English 및 ejml 모델이 있는지 확인하십시오.

그렇게해야합니다.

0

3.6.0은 sentiment 어노 테이터를 실행하려고 할 때 나에게 적합하지 않았습니다. 3.7.0 그러나 상자에서 일했다. 그것을 다운로드하십시오 here. 그런 다음 http://stanfordnlp.github.io/CoreNLP/corenlp-server.html에 설명 된대로 java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000으로 실행하십시오. 예 : 곱슬 곱슬하게 달려라. curl --data 'The quick brown fox jumped over the lazy dog.' 'http://localhost:9000/?properties={%22annotators%22%3A%22tokenize%2Cssplit%2Cparse%2Csentiment%22%2C%22outputFormat%22%3A%22json%22}'

관련 문제