Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 543 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 543 Bytes

StanfordService

A simple web service providing CoreNLP parsing.

Build

curl http://nlp.stanford.edu/software/stanford-english-corenlp-2016-10-31-models.jar -o lib/stanford-english-corenlp-2016-10-31-models.jar
javac -cp ".:lib/*" Stanford.java

RUN

java -cp ".:lib/*" Stanford

USE

curl "http://localhost:8888/tree/Does%2FVBZ%20my%20dog%20like%20to%20eat%20sausages%3F"

or

curl  -H "Content-Type: application/json" -X POST -d  '{"text":"Does my dog eat sausage?"}'  "http://localhost:8888/tree/"