use of edu.stanford.nlp.trees.UniversalEnglishGrammaticalStructure in project CoreNLP by stanfordnlp.
the class DisplayMatchesPanel method showUniversalDependencies.
private void showUniversalDependencies() {
UniversalEnglishGrammaticalStructure gs = new UniversalEnglishGrammaticalStructure(tjp.getTree());
JOptionPane.showMessageDialog(this, GrammaticalStructureConversionUtils.dependenciesToString(gs, gs.typedDependencies(false), tjp.getTree(), false, false, false), "Universal dependencies", JOptionPane.INFORMATION_MESSAGE, null);
}
Aggregations