private static void testDependencyTree() { String testSentence = "Now is the time for all good men to come to the aid of their country."; CoreNlpParser parser = new CoreNlpParser(); List<SemanticGraph> result = parser.getTextDependencyTree(testSentence); for (SemanticGraph graph : result) { graph.prettyPrint(); } }