Stanford NLP | Stanford NLP Python | Stanford NLP Tutorial

in the above mentioned link, after completing the execution of commands under the section “Using CoreNLP’s API for Text Analytics”, I’m trying to implement corenlp_setup.py file given as " a. Setting up the CoreNLPClient". the problem I’m encountering is, in line 12:

with CoreNLPClient(annotators=['tokenize','ssplit','pos','lemma','ner','depparse','coref'], timeout=30000, memory='16G') as client:

though in annotators list I have given just ‘tokenize’ option, i am receiving the output of all the annotators.

what I tried:
with CoreNLPClient(annotators=['tokenize'], timeout=30000, memory='16G') as client:

Am i doing something wrong?
please help and thanks in advance.

© Copyright 2013-2020 Analytics Vidhya