corenlp-docker
所属分类:自然语言处理
开发工具:Dockerfile
文件大小:2KB
下载次数:0
上传日期:2020-12-10 23:09:57
上 传 者:
sh-1993
说明: corenlp docker,斯坦福大学corenlp服务器的Dockerfile
(corenlp-docker,Dockerfile for Stanford CoreNLP Server)
文件列表:
Dockerfile (801, 2020-12-11)
# corenlp-docker
![pipeline status](https://github.com/chilland/corenlp-docker/workflows/Publish%20Docker%20image/badge.svg)
Dockerfile for Stanford CoreNLP Server
---------
This Dockerfile builds the [Stanford CoreNLP
Server](http://stanfordnlp.github.io/CoreNLP/corenlp-server.html) and
shift-reduce parser. It exposes the endpoint on port 9000. Requests
are made as covered in the documentation. Including the shift-reduce parser
makes the image rather large (2.5gb+). You can specify the version you want to
build via `--build-arg`.
## Build
```shell
docker build --build-arg CORENLP_VERSION=${CORENLP_VERSION} -t corenlp:${CORENLP_VERSION} .
```
## Run
The container runs the server with some simple defaults and runs the jar with
4gb of memory. The command can be overriden when you start the container. For
example:
```shell
docker run -p 9000:9000 -d corenlp java -cp "*" -mx15g edu.stanford.nlp.pipeline.StanfordCoreNLPServer -parse.model edu/stanford/nlp/models/srparser/englishSR.ser.gz -preload tokenize,ssplit,pos,lemma,depparse,ner,kbp,relation,coref,quote,sentiment -quiet
```
近期下载者:
相关文件:
收藏者: