docker-corenlp
所属分类:自然语言处理
开发工具:Dockerfile
文件大小:1KB
下载次数:0
上传日期:2020-04-23 19:53:27
上 传 者:
sh-1993
说明: docker corenlp,斯坦福corenlp服务器的docker镜像
(docker-corenlp,Docker image for Stanford CoreNLP server)
文件列表:
Dockerfile (978, 2020-02-12)
# corenlp-server
This image starts a [CoreNLP Server](https://stanfordnlp.github.io/CoreNLP/corenlp-server.html).
To see the version of CoreNLP, see `ENV CORENLP_BUILD_DATE` in `Dockerfile`.
## Usage
To get started using the default port to listen on, run:
```docker run -p 9000:9000 jgoodall/corenlp```
To change the port/or memory allocation (default is `3g`), run:
```docker run --env PORT=9123 --env MEMORY=4g -p 9123:9123 jgoodall/corenlp```
To test, send some text to the server:
```sh
curl --data "The quick brown fox jumps over the lazy dog." 'http://localhost:9000/?properties={%22annotators%22%3A%22tokenize%2Cssplit%2Cpos%2Cner%22%2C%22outputFormat%22%3A%22json%22}'
```
## Build Docker Image
To build and push the image to docker hub:
```sh
VERS=v3.9.2.0
git tag -a $VERS
git push --tag
docker build -t jgoodall/corenlp -t jgoodall/corenlp:$VERS .
docker push jgoodall/corenlp:latest
docker push jgoodall/corenlp:$VERS
```
近期下载者:
相关文件:
收藏者: