edu.stanford.nlp.trees
Class TreeCoreAnnotations.TreeAnnotation

java.lang.Object
  extended by edu.stanford.nlp.trees.TreeCoreAnnotations.TreeAnnotation
All Implemented Interfaces:
CoreAnnotation<Tree>, TypesafeMap.Key<CoreMap,Tree>
Enclosing class:
TreeCoreAnnotations

public static class TreeCoreAnnotations.TreeAnnotation
extends java.lang.Object
implements CoreAnnotation<Tree>

The CoreMap key for getting the syntactic parse tree of a sentence. This key is typically set on sentence annotations.


Constructor Summary
TreeCoreAnnotations.TreeAnnotation()
           
 
Method Summary
 java.lang.Class<Tree> getType()
          Returns the type associated with this annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeCoreAnnotations.TreeAnnotation

public TreeCoreAnnotations.TreeAnnotation()
Method Detail

getType

public java.lang.Class<Tree> getType()
Description copied from interface: CoreAnnotation
Returns the type associated with this annotation. This method must return the same class type as its value type parameter. It feels like one should be able to get away without this method, but because Java erases the generic type signature, that info disappears at runtime.

Specified by:
getType in interface CoreAnnotation<Tree>


Stanford NLP Group