use of edu.stanford.nlp.trees.EnglishGrammaticalStructure in project CoreNLP by stanfordnlp.
the class DisplayMatchesPanel method showDependencies.
// BEGIN - sebschu
private void showDependencies() {
EnglishGrammaticalStructure gs = new EnglishGrammaticalStructure(tjp.getTree());
JOptionPane.showMessageDialog(this, GrammaticalStructureConversionUtils.dependenciesToString(gs, gs.typedDependencies(false), tjp.getTree(), false, false, false), "Dependencies", JOptionPane.INFORMATION_MESSAGE, null);
}
Aggregations