public abstract class DependencyUtility extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
DependencyUtility() |
Modifier and Type | Method and Description |
---|---|
static void |
addToIndexes(org.apache.uima.jcas.JCas jcas,
ArrayList<ConllDependencyNode> nodes) |
static boolean |
doesSubsume(org.apache.uima.jcas.tcas.Annotation annot1,
org.apache.uima.jcas.tcas.Annotation annot2)
Checks if one annotation subsumes another
|
static String |
dumpDependencyGraph(org.apache.uima.jcas.tcas.Annotation annotation) |
static boolean |
equalCoverage(org.apache.uima.jcas.tcas.Annotation annot1,
org.apache.uima.jcas.tcas.Annotation annot2)
Equality expressions to aid in converting between DepNodes and CAS objects
|
static ConllDependencyNode |
getDependencyNode(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation annot)
Returns the first ConllDependencyNode in the CAS w/ same begin and end as the given Annotation
|
static List<ConllDependencyNode> |
getDependencyNodes(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation annot)
Returns the ConllDependencyNodes in the CAS w/ subsumed begins and ends
|
static List<ConllDependencyNode> |
getLeftSibProgeny(ConllDependencyNode refNode,
List<ConllDependencyNode> tree) |
static List<ConllDependencyNode> |
getLeftSibs(ConllDependencyNode refNode,
List<ConllDependencyNode> tree) |
static ConllDependencyNode |
getNominalHeadNode(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation annot)
Returns the first ConllDependencyNode in the CAS w/ same begin and end as the given Annotation
|
static ConllDependencyNode |
getNominalHeadNode(List<ConllDependencyNode> nodes)
Finds the head node out of a few ConllDependencyNodes.
|
static DependencyPath |
getPath(org.apache.uima.jcas.JCas jCas,
ConllDependencyNode node1,
ConllDependencyNode node2)
Given a CAS, find the path between two nodes in a sentence
|
static DependencyPath |
getPath(List<ConllDependencyNode> nodes,
ConllDependencyNode node1,
ConllDependencyNode node2)
Given a set of ConllDependencyNodes, find the path between two nodes
|
static DependencyPath |
getPathToTop(org.apache.uima.jcas.JCas jCas,
ConllDependencyNode node1) |
static List<ConllDependencyNode> |
getProgeny(ConllDependencyNode refNode,
List<ConllDependencyNode> tree) |
static List<ConllDependencyNode> |
getProgeny(List<ConllDependencyNode> refNodes,
List<ConllDependencyNode> tree) |
static List<ConllDependencyNode> |
getRightSibProgeny(ConllDependencyNode refNode,
List<ConllDependencyNode> tree) |
static List<ConllDependencyNode> |
getRightSibs(ConllDependencyNode refNode,
List<ConllDependencyNode> tree) |
static Sentence |
getSentence(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation annot)
Find the sentence in which an Annotation lives
|
public static void addToIndexes(org.apache.uima.jcas.JCas jcas, ArrayList<ConllDependencyNode> nodes)
public static boolean equalCoverage(org.apache.uima.jcas.tcas.Annotation annot1, org.apache.uima.jcas.tcas.Annotation annot2)
public static boolean doesSubsume(org.apache.uima.jcas.tcas.Annotation annot1, org.apache.uima.jcas.tcas.Annotation annot2)
public static Sentence getSentence(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation annot)
public static ConllDependencyNode getDependencyNode(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation annot)
public static List<ConllDependencyNode> getDependencyNodes(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation annot)
public static ConllDependencyNode getNominalHeadNode(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation annot)
public static ConllDependencyNode getNominalHeadNode(List<ConllDependencyNode> nodes)
public static DependencyPath getPath(List<ConllDependencyNode> nodes, ConllDependencyNode node1, ConllDependencyNode node2)
public static DependencyPath getPath(org.apache.uima.jcas.JCas jCas, ConllDependencyNode node1, ConllDependencyNode node2)
public static DependencyPath getPathToTop(org.apache.uima.jcas.JCas jCas, ConllDependencyNode node1)
public static List<ConllDependencyNode> getRightSibs(ConllDependencyNode refNode, List<ConllDependencyNode> tree)
public static List<ConllDependencyNode> getLeftSibs(ConllDependencyNode refNode, List<ConllDependencyNode> tree)
public static List<ConllDependencyNode> getProgeny(ConllDependencyNode refNode, List<ConllDependencyNode> tree)
public static List<ConllDependencyNode> getProgeny(List<ConllDependencyNode> refNodes, List<ConllDependencyNode> tree)
public static List<ConllDependencyNode> getRightSibProgeny(ConllDependencyNode refNode, List<ConllDependencyNode> tree)
public static List<ConllDependencyNode> getLeftSibProgeny(ConllDependencyNode refNode, List<ConllDependencyNode> tree)
public static String dumpDependencyGraph(org.apache.uima.jcas.tcas.Annotation annotation)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.