edu.stanford.nlp.ling
Class CoreAnnotations.SentencesAnnotation
java.lang.Object
edu.stanford.nlp.ling.CoreAnnotations.SentencesAnnotation
- All Implemented Interfaces:
- CoreAnnotation<List<CoreMap>>, TypesafeMap.Key<CoreMap,List<CoreMap>>
- Enclosing class:
- CoreAnnotations
public static class CoreAnnotations.SentencesAnnotation
- extends Object
- implements CoreAnnotation<List<CoreMap>>
The CoreMap key for getting the sentences contained by an annotation.
This key is typically set only on document annotations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoreAnnotations.SentencesAnnotation
public CoreAnnotations.SentencesAnnotation()
getType
public Class<List<CoreMap>> 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<List<CoreMap>>
Stanford NLP Group