public class AnnotationTreeUtils extends Object
Constructor and Description |
---|
AnnotationTreeUtils() |
Modifier and Type | Method and Description |
---|---|
static TreebankNode |
annotationNode(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation annot) |
static TreebankNode |
annotationNode(org.apache.uima.jcas.JCas jcas,
int a,
int b) |
static boolean |
dominates(TreebankNode node1,
TreebankNode node2) |
static TopTreebankNode |
getAnnotationTree(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation annot) |
static TreebankNode |
getCommonAncestor(TreebankNode node1,
TreebankNode node2) |
static TerminalTreebankNode |
getHead(TreebankNode n) |
static TopTreebankNode |
getRoot(TreebankNode n) |
static TopTreebankNode |
getTreeCopy(org.apache.uima.jcas.JCas jcas,
TopTreebankNode orig) |
static TreebankNode |
getTreeCopy(org.apache.uima.jcas.JCas jcas,
TreebankNode orig) |
static TreebankNode |
insertAnnotationNode(org.apache.uima.jcas.JCas jcas,
TopTreebankNode root,
org.apache.uima.jcas.tcas.Annotation arg1,
String nodeType) |
static void |
removeLeftOfAnnotation(org.apache.uima.jcas.JCas jcas,
TreebankNode node,
org.apache.uima.jcas.tcas.Annotation annot) |
static void |
removeRightOfAnnotation(org.apache.uima.jcas.JCas jcas,
TreebankNode node,
org.apache.uima.jcas.tcas.Annotation annot) |
public static TopTreebankNode getAnnotationTree(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annot)
public static TopTreebankNode getTreeCopy(org.apache.uima.jcas.JCas jcas, TopTreebankNode orig)
public static TreebankNode getTreeCopy(org.apache.uima.jcas.JCas jcas, TreebankNode orig)
public static TreebankNode annotationNode(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annot)
public static TreebankNode annotationNode(org.apache.uima.jcas.JCas jcas, int a, int b)
public static TerminalTreebankNode getHead(TreebankNode n)
public static TopTreebankNode getRoot(TreebankNode n)
public static TreebankNode insertAnnotationNode(org.apache.uima.jcas.JCas jcas, TopTreebankNode root, org.apache.uima.jcas.tcas.Annotation arg1, String nodeType)
public static void removeRightOfAnnotation(org.apache.uima.jcas.JCas jcas, TreebankNode node, org.apache.uima.jcas.tcas.Annotation annot)
public static void removeLeftOfAnnotation(org.apache.uima.jcas.JCas jcas, TreebankNode node, org.apache.uima.jcas.tcas.Annotation annot)
public static TreebankNode getCommonAncestor(TreebankNode node1, TreebankNode node2)
public static final boolean dominates(TreebankNode node1, TreebankNode node2)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.