Package edu.stanford.nlp.trees
Class TreeCoreAnnotations.BinarizedTreeAnnotation
- java.lang.Object
-
- edu.stanford.nlp.trees.TreeCoreAnnotations.BinarizedTreeAnnotation
-
- All Implemented Interfaces:
CoreAnnotation<Tree>,TypesafeMap.Key<Tree>
- Enclosing class:
- TreeCoreAnnotations
public static class TreeCoreAnnotations.BinarizedTreeAnnotation extends Object implements CoreAnnotation<Tree>
The CoreMap key for getting the binarized version of the syntactic parse tree of a sentence. This key is typically set on sentence annotations. It is only set if the parser annotator was specifically set to parse with this (parse.saveBinarized). The sentiment annotator requires this kind of tree, but otherwise it is not typically used.
-
-
Constructor Summary
Constructors Constructor Description BinarizedTreeAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Tree>getType()Returns the type associated with this annotation.
-
-
-
Method Detail
-
getType
public Class<Tree> getType()
Description copied from interface:CoreAnnotationReturns 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:
getTypein interfaceCoreAnnotation<Tree>
-
-