Package edu.stanford.nlp.pipeline
Interface AnnotationSource
-
public interface AnnotationSourceData source from which annotations comes from- Author:
- Angel Chang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<Annotation>getAnnotations(String selector)Returns a iterable of annotations given input string (i.e.Iterable<Annotation>getAnnotations(String selector, int limit)Returns a iterable of annotations given input string (i.e.
-
-
-
Method Detail
-
getAnnotations
Iterable<Annotation> getAnnotations(String selector, int limit)
Returns a iterable of annotations given input string (i.e. filename, lucene query, etc)- Parameters:
selector- - selector of what annotations to returnlimit- - limit on the number of annotations to return (0 or less for unlimited)- Returns:
- iterable of annotations
-
getAnnotations
Iterable<Annotation> getAnnotations(String selector)
Returns a iterable of annotations given input string (i.e. filename, lucene query, etc)- Parameters:
selector- - selector of what annotations to return- Returns:
- iterable of annotations
-
-