edu.stanford.nlp.trees
Class TreeCoreAnnotations.HeadWordAnnotation

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

public static class TreeCoreAnnotations.HeadWordAnnotation
extends Object
implements CoreAnnotation<Tree>

The standard key for storing a head word in the map as a pointer to another node.


Constructor Summary
TreeCoreAnnotations.HeadWordAnnotation()
           
 
Method Summary
 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.HeadWordAnnotation

public TreeCoreAnnotations.HeadWordAnnotation()
Method Detail

getType

public 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