Search in sources :

Example 1 with UniversalEnglishGrammaticalStructure

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);
}
Also used : UniversalEnglishGrammaticalStructure(edu.stanford.nlp.trees.UniversalEnglishGrammaticalStructure)

Aggregations

UniversalEnglishGrammaticalStructure (edu.stanford.nlp.trees.UniversalEnglishGrammaticalStructure)1