https://github.com/educationaltestingservice/stanford-0mq
An implementation of a server for Stanford's CoreNLP suite using 0mq and JSON.
https://github.com/educationaltestingservice/stanford-0mq
Last synced: about 1 year ago
JSON representation
An implementation of a server for Stanford's CoreNLP suite using 0mq and JSON.
- Host: GitHub
- URL: https://github.com/educationaltestingservice/stanford-0mq
- Owner: EducationalTestingService
- License: apache-2.0
- Created: 2013-12-12T20:56:04.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T20:09:42.000Z (over 7 years ago)
- Last Synced: 2025-05-14T09:17:20.800Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Assuming you have the shift-reduce parser's model in a directory called `$NLPTools/stanford-parser` and that the built JAR is in a subdirectory called `target/`, the server can be started with:
```
java -cp $NLPTools/stanford-parser/stanford-srparser-2014-10-23-models.jar:target/stanford-sr-parser-zeromq-server-0.0.3-SNAPSHOT.jar org.ets.research.nlp.corenlp.zeromq.Server tcp://$(hostname):5555
```
If you would like to specify the number of threads (default: 10), you can do so as follows:
```
java -cp $NLPTools/stanford-parser/stanford-srparser-2014-10-23-models.jar:target/stanford-sr-parser-zeromq-server-0.0.3-SNAPSHOT.jar org.ets.research.nlp.corenlp.zeromq.Server tcp://$(hostname):5555 10
```
All other JARs needed are contained within the stanford-sr-parser-zeromq-server JAR.
Build with Maven with:
`mvn clean package`