edu.stanford.nlp.trees
Class TreeCoreAnnotations.TreeAnnotation
java.lang.Object
edu.stanford.nlp.trees.TreeCoreAnnotations.TreeAnnotation
- All Implemented Interfaces:
- CoreAnnotation<Tree>, TypesafeMap.Key<CoreMap,Tree>
- Enclosing class:
- TreeCoreAnnotations
public static class TreeCoreAnnotations.TreeAnnotation
- extends Object
- implements CoreAnnotation<Tree>
The CoreMap key for getting the syntactic parse tree of a sentence.
This key is typically set on sentence annotations.
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 |
TreeCoreAnnotations.TreeAnnotation
public TreeCoreAnnotations.TreeAnnotation()
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