public class AnnotationDepUtils extends Object
Constructor and Description |
---|
AnnotationDepUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
distanceFromRoot(ConllDependencyNode node) |
static int |
distanceFromRoot(SimpleTree tree) |
static SimpleTree |
getPathEnclosedTree(SimpleTree root,
List<SimpleTree> annotationNodes,
SimpleTree leftmostTree,
SimpleTree rightmostTree) |
static String |
getTokenRelTreeString(org.apache.uima.jcas.JCas jCas,
List<ConllDependencyNode> nodes,
org.apache.uima.jcas.tcas.Annotation[] annotations,
String[] labels) |
static String |
getTokenRelTreeString(org.apache.uima.jcas.JCas jCas,
List<ConllDependencyNode> nodes,
org.apache.uima.jcas.tcas.Annotation[] annotations,
String[] labels,
boolean getParent) |
static String |
getTokenTreeString(org.apache.uima.jcas.JCas jCas,
List<ConllDependencyNode> nodes,
org.apache.uima.jcas.tcas.Annotation[] annotations,
String[] labels,
boolean getParent) |
public static String getTokenRelTreeString(org.apache.uima.jcas.JCas jCas, List<ConllDependencyNode> nodes, org.apache.uima.jcas.tcas.Annotation[] annotations, String[] labels)
public static String getTokenRelTreeString(org.apache.uima.jcas.JCas jCas, List<ConllDependencyNode> nodes, org.apache.uima.jcas.tcas.Annotation[] annotations, String[] labels, boolean getParent)
public static String getTokenTreeString(org.apache.uima.jcas.JCas jCas, List<ConllDependencyNode> nodes, org.apache.uima.jcas.tcas.Annotation[] annotations, String[] labels, boolean getParent)
public static SimpleTree getPathEnclosedTree(SimpleTree root, List<SimpleTree> annotationNodes, SimpleTree leftmostTree, SimpleTree rightmostTree)
public static int distanceFromRoot(ConllDependencyNode node)
public static int distanceFromRoot(SimpleTree tree)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.