Class TextAnnotationProvider
- java.lang.Object
-
- de.julielab.jcore.ae.annotationadder.annotationsources.TextAnnotationProvider
-
- All Implemented Interfaces:
AnnotationProvider<AnnotationList>,org.apache.uima.resource.SharedResourceObject
- Direct Known Subclasses:
H2TextAnnotationProvider,InMemoryFileTextAnnotationProvider
public abstract class TextAnnotationProvider extends Object implements AnnotationProvider<AnnotationList>
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotationSource<AnnotationList<ExternalTextAnnotation>>annotationSourcestatic StringCOL_BEGINstatic StringCOL_DOC_IDstatic StringCOL_ENDstatic StringCOL_UIMA_TYPEprotected AnnotationFormat<ExternalTextAnnotation>formatprotected org.slf4j.Loggerlogstatic StringPARAM_ANNOTATION_FORMATstatic StringPARAM_COLUMN_NAMESstatic StringPARAM_INPUT_HAS_HEADER
-
Constructor Summary
Constructors Constructor Description TextAnnotationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationList<ExternalTextAnnotation>getAnnotations(String id)voidload(org.apache.uima.resource.DataResource dataResource)
-
-
-
Field Detail
-
PARAM_ANNOTATION_FORMAT
public static final String PARAM_ANNOTATION_FORMAT
- See Also:
- Constant Field Values
-
PARAM_INPUT_HAS_HEADER
public static final String PARAM_INPUT_HAS_HEADER
- See Also:
- Constant Field Values
-
PARAM_COLUMN_NAMES
public static final String PARAM_COLUMN_NAMES
- See Also:
- Constant Field Values
-
COL_DOC_ID
public static final String COL_DOC_ID
- See Also:
- Constant Field Values
-
COL_BEGIN
public static final String COL_BEGIN
- See Also:
- Constant Field Values
-
COL_END
public static final String COL_END
- See Also:
- Constant Field Values
-
COL_UIMA_TYPE
public static final String COL_UIMA_TYPE
- See Also:
- Constant Field Values
-
log
protected org.slf4j.Logger log
-
annotationSource
protected AnnotationSource<AnnotationList<ExternalTextAnnotation>> annotationSource
-
format
protected AnnotationFormat<ExternalTextAnnotation> format
-
-
Method Detail
-
getAnnotations
public AnnotationList<ExternalTextAnnotation> getAnnotations(String id)
- Specified by:
getAnnotationsin interfaceAnnotationProvider<AnnotationList>
-
load
public void load(org.apache.uima.resource.DataResource dataResource) throws org.apache.uima.resource.ResourceInitializationException- Specified by:
loadin interfaceorg.apache.uima.resource.SharedResourceObject- Throws:
org.apache.uima.resource.ResourceInitializationException
-
-