org.apache.ctakes.constituency.parser.util
Class AnnotationTreeUtils

java.lang.Object
  extended by org.apache.ctakes.constituency.parser.util.AnnotationTreeUtils

public class AnnotationTreeUtils
extends Object


Constructor Summary
AnnotationTreeUtils()
           
 
Method Summary
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 TopTreebankNode getAnnotationTree(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annot)
           
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 removeRightOfAnnotation(org.apache.uima.jcas.JCas jcas, TreebankNode node, org.apache.uima.jcas.tcas.Annotation annot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationTreeUtils

public AnnotationTreeUtils()
Method Detail

getAnnotationTree

public static TopTreebankNode getAnnotationTree(org.apache.uima.jcas.JCas jcas,
                                                org.apache.uima.jcas.tcas.Annotation annot)

getTreeCopy

public static TopTreebankNode getTreeCopy(org.apache.uima.jcas.JCas jcas,
                                          TopTreebankNode orig)

getTreeCopy

public static TreebankNode getTreeCopy(org.apache.uima.jcas.JCas jcas,
                                       TreebankNode orig)

annotationNode

public static TreebankNode annotationNode(org.apache.uima.jcas.JCas jcas,
                                          org.apache.uima.jcas.tcas.Annotation annot)

annotationNode

public static TreebankNode annotationNode(org.apache.uima.jcas.JCas jcas,
                                          int a,
                                          int b)

getHead

public static TerminalTreebankNode getHead(TreebankNode n)

getRoot

public static TopTreebankNode getRoot(TreebankNode n)

insertAnnotationNode

public static TreebankNode insertAnnotationNode(org.apache.uima.jcas.JCas jcas,
                                                TopTreebankNode root,
                                                org.apache.uima.jcas.tcas.Annotation arg1,
                                                String nodeType)

removeRightOfAnnotation

public static void removeRightOfAnnotation(org.apache.uima.jcas.JCas jcas,
                                           TreebankNode node,
                                           org.apache.uima.jcas.tcas.Annotation annot)


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.