2016-08-02 8 views
0

ich gerade heruntergeladen und lief Standfor NLP 3.6.0 http://stanfordnlp.github.io/CoreNLP/index.html indem Sie den folgenden Befehl:Stanford NLP Server :: Unknown Kommentator: Stimmungs

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

ich andere Annotatoren wie POS, Tokenizer getestet und sie funktionieren nur ok . Allerdings, wenn ich versuche, die Stimmung annotator laufen [http://nlp.stanford.edu/sentiment/] ich folgende Fehlermeldungen erhalten:

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) 

ich alle Dateien hochgeladen ich von der Download-Seite bekam [http://stanfordnlp.github.io/CoreNLP/index.html#download] nicht sicher, was bin ich dabei?

Antwort

0

Für diejenigen, die das gleiche Problem erfahren, laden Sie bitte das Projekt von github und nicht von ihrer Website. Stellen Sie sicher, dass Sie das models Glas, English und EJML-Modell haben.

Das sollte es tun.

0

3.6.0 funktionierte nicht für mich, wenn ich versuche, den sentiment Annotator zu laufen. 3.7.0 funktionierte jedoch aus der Box. Laden Sie es herunter here. Führen Sie es dann mit java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000 wie in http://stanfordnlp.github.io/CoreNLP/corenlp-server.html dokumentiert. z.B. Führen Sie es mit Curl 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}'

Verwandte Themen