Class 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 Detail

      • BinarizedTreeAnnotation

        public BinarizedTreeAnnotation()
    • 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>