public class DependencyParseUtils extends Object
Constructor and Description |
---|
DependencyParseUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
dumpDependencyRelations(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation annotation) |
static ConllDependencyNode |
findAnnotationHead(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation annotation)
Finds the head word within a given annotation span
|
static LinkedList<ConllDependencyNode> |
getPathBetweenNodes(ConllDependencyNode srcNode,
ConllDependencyNode tgtNode)
Finds the path between two dependency nodes
|
static List<LinkedList<ConllDependencyNode>> |
getPathsToCommonAncestor(ConllDependencyNode node1,
ConllDependencyNode node2)
Returns the paths from each node to the common ancestor between them
|
static LinkedList<ConllDependencyNode> |
getPathToSentenceHead(ConllDependencyNode node) |
static String |
pathToString(LinkedList<ConllDependencyNode> path)
This will convert a path into a string lexicalized at the end points with arc labels and POS tags in between
|
public static List<LinkedList<ConllDependencyNode>> getPathsToCommonAncestor(ConllDependencyNode node1, ConllDependencyNode node2)
public static ConllDependencyNode findAnnotationHead(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annotation)
public static LinkedList<ConllDependencyNode> getPathToSentenceHead(ConllDependencyNode node)
public static LinkedList<ConllDependencyNode> getPathBetweenNodes(ConllDependencyNode srcNode, ConllDependencyNode tgtNode)
public static String pathToString(LinkedList<ConllDependencyNode> path)
public static String dumpDependencyRelations(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annotation)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.