Search in sources :

Example 1 with EnglishGrammaticalStructure

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

Aggregations

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