I have sentences (Text I):
Tom is a smart boy. He know a lot of thing.
I want to change <
List<Pair<IntTuple, IntTuple>> coref = document.get(CorefGraphAnnotation.class);
This is an old coref output format.
You can change this line to
Map<Integer, CorefChain> graph = document.get(CorefChainAnnotation.class);
or you can use the oldCorefFormat
option:
props.put("oldCorefFormat", "true");