I am using core nlp library to find coreference in my text
Tyson lives in New York City with his wife and their two children.
when I am running this on Stanford CoreNLP Online demo it's giving me correct output
but when I run this text on my machine it's returning null on this line of code
Map graph = document.get(CorefChainAnnotation.class);
Thank you
Look into this complete example - http://blog.pengyifan.com/resolve-coreference-using-stanford-corenlp/. I guess you are missing something as i am unable to understand the exact reason from the code you provided.