HUB
Sign inSign up

tchewik/corenlp

By tchewik

•Updated about 6 years ago

Stanford corenlp container.

Image
0

855

tchewik/corenlp repository overview

⁠Run the container
docker run --rm -ti -p 9000:9000 -d tchewik/corenlp
⁠Use it in python script
pip install -U pip pycorenlp
from pycorenlp import StanfordCoreNLP

container = 'http://hostname:9000'
nlp = StanfordCoreNLP(container)
nlp_properties = {
  'annotators': 'tokenize,ssplit,tokenize,ssplit,pos,depparse,natlog,openie,ner',
  'outputFormat': 'json'
}

result = nlp.annotate(text, properties=nlp_properties)
Tag summary
Recent tags
Content type
Image
Digest
Size
1.6 GB
Last updated
about 6 years ago
docker pull tchewik/corenlp:latest