docker run --rm -ti -p 9000:9000 -d tchewik/corenlp
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)
Content type
Image
Digest
Size
1.6 GB
Last updated
about 6 years ago
docker pull tchewik/corenlp