https://github.com/akiomik/stanford-corenlp-server

Scala JSON-RPC server for Stanford CoreNLP

https://github.com/akiomik/stanford-corenlp-server

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.6%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Scala JSON-RPC server for Stanford CoreNLP

Basic Info
  • Host: GitHub
  • Owner: akiomik
  • Language: Scala
  • Default Branch: master
  • Homepage:
  • Size: 13.7 KB
Statistics
  • Stars: 10
  • Watchers: 6
  • Forks: 4
  • Open Issues: 1
  • Releases: 0
Created over 10 years ago · Last pushed over 4 years ago
Metadata Files
Readme

README.md

stanford-corenlp-server

Run Stanford CoreNLP as a JSON-RPC server.

Using Docker

Building Image

bash git submodule init git submodule update docker build -t akiomik/stanford-corenlp-server .

Running Server

bash docker run -d -p 8081:8081 -p 9990:9990 akiomik/stanford-corenlp-server

Querying the Server

bash curl -X POST http://localhost:8081/rpc -H "Content-type: application/json" -d '{"jsonrpc": "2.0", "method": "foo", "params": ["A martini. Shaken, not stirred."], "id": "1"}'

Setup - Local

```bash git clone https://github.com/akiomik/stanford-corenlp-server.git cd stanford-corenlp-server

build current version of Stanford CoreNLP

git submodule init git submodule update cd lib/CoreNLP gradle build ```

Usage - Local

Server

bash sbt 'run -port=:8081'

Client

```bash curl -X POST http://localhost:8081/rpc -H "Content-type: application/json" -d '{"jsonrpc": "2.0", "method": "foo", "params": ["A martini. Shaken, not stirred."], "id": "1"}'

=> {"jsonrpc":"2.0","result":{"sentences":[{"index":"0","parse":"SENTENCESKIPPEDORUNPARSABLE\n","tokens":[{"index":"1","word":"A","characterOffsetBegin":"0","characterOffsetEnd":"1","pos":"DT"},{"index":"2","word":"martini","characterOffsetBegin":"2","characterOffsetEnd":"9","pos":"NN"},{"index":"3","word":".","characterOffsetBegin":"9","characterOffsetEnd":"10","pos":"."},{"index":"1","word":"Shaken","characterOffsetBegin":"11","characterOffsetEnd":"17","pos":"VBN"},{"index":"2","word":",","characterOffsetBegin":"17","characterOffsetEnd":"18","pos":","},{"index":"3","word":"not","characterOffsetBegin":"19","characterOffsetEnd":"22","pos":"RB"},{"index":"4","word":"stirred","characterOffsetBegin":"23","characterOffsetEnd":"30","pos":"VBN"},{"index":"5","word":".","characterOffsetBegin":"30","characterOffsetEnd":"31","pos":"."}]},{"index":"1","parse":"SENTENCESKIPPEDORUNPARSABLE\n","tokens":[{"index":"1","word":"A","characterOffsetBegin":"0","characterOffsetEnd":"1","pos":"DT"},{"index":"2","word":"martini","characterOffsetBegin":"2","characterOffsetEnd":"9","pos":"NN"},{"index":"3","word":".","characterOffsetBegin":"9","characterOffsetEnd":"10","pos":"."},{"index":"1","word":"Shaken","characterOffsetBegin":"11","characterOffsetEnd":"17","pos":"VBN"},{"index":"2","word":",","characterOffsetBegin":"17","characterOffsetEnd":"18","pos":","},{"index":"3","word":"not","characterOffsetBegin":"19","characterOffsetEnd":"22","pos":"RB"},{"index":"4","word":"stirred","characterOffsetBegin":"23","characterOffsetEnd":"30","pos":"VBN"},{"index":"5","word":".","characterOffsetBegin":"30","characterOffsetEnd":"31","pos":"."}]}]},"error":null,"id":"1"}

```

Configuration

Edit src/main/resources/application.properties.

Create a fat JAR

```bash

build with sbt-assembly

sbt -J-Xmx2048m assembly

execute the jar

target/scala-2.11/stanford-corenlp-server-0.0.1-SNAPSHOT ```

Owner

  • Name: Akiomi KAMAKURA
  • Login: akiomik
  • Kind: user
  • Location: Japan

Bird lover.

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 1
  • Total pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 hour
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • elyase (1)
Pull Request Authors
  • aladagemre (2)
  • akiomik (1)
Top Labels
Issue Labels
Pull Request Labels