} catch (IOException e) {
throw new TerminateToolException(-1, "Failed to load all coreferencer models!", e);
}
ObjectStream<String> lineStream =
new PlainTextByLineStream(new InputStreamReader(System.in));
PerformanceMonitor perfMon = new PerformanceMonitor(System.err, "parses");
perfMon.start();
try {
int sentenceNumber = 0;
List<Mention> document = new ArrayList<Mention>();
List<Parse> parses = new ArrayList<Parse>();
String line;
while ((line = lineStream.read()) != null) {
if (line.equals("")) {
DiscourseEntity[] entities = treebankLinker.getEntities(document.toArray(new Mention[document.size()]));
//showEntities(entities);
new CorefParse(parses,entities).show();