Package de.julielab.jcore.consumer.ew
Class EmbeddingWriter
- java.lang.Object
-
- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
-
- org.apache.uima.analysis_component.Annotator_ImplBase
-
- org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
- de.julielab.jcore.consumer.ew.EmbeddingWriter
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class EmbeddingWriter extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_ANNOTATION_TYPEstatic StringPARAM_GZIPstatic StringPARAM_MAX_FILE_ENTRY_SIZEstatic StringPARAM_OUTDIR
-
Constructor Summary
Constructors Constructor Description EmbeddingWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectionProcessComplete()voidinitialize(org.apache.uima.UimaContext aContext)This method is called a single time by the framework at component creation.voidprocess(org.apache.uima.jcas.JCas aJCas)This method is called for each document going through the component.-
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process
-
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, next
-
-
-
-
Field Detail
-
PARAM_ANNOTATION_TYPE
public static final String PARAM_ANNOTATION_TYPE
- See Also:
- Constant Field Values
-
PARAM_OUTDIR
public static final String PARAM_OUTDIR
- See Also:
- Constant Field Values
-
PARAM_GZIP
public static final String PARAM_GZIP
- See Also:
- Constant Field Values
-
PARAM_MAX_FILE_ENTRY_SIZE
public static final String PARAM_MAX_FILE_ENTRY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationExceptionThis method is called a single time by the framework at component creation. Here, descriptor parameters are read and initial setup is done.- Specified by:
initializein interfaceorg.apache.uima.analysis_component.AnalysisComponent- Overrides:
initializein classorg.apache.uima.analysis_component.AnalysisComponent_ImplBase- Throws:
org.apache.uima.resource.ResourceInitializationException
-
process
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessExceptionThis method is called for each document going through the component. This is where the actual work happens.- Specified by:
processin classorg.apache.uima.analysis_component.JCasAnnotator_ImplBase- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
collectionProcessComplete
public void collectionProcessComplete() throws org.apache.uima.analysis_engine.AnalysisEngineProcessException- Specified by:
collectionProcessCompletein interfaceorg.apache.uima.analysis_component.AnalysisComponent- Overrides:
collectionProcessCompletein classorg.apache.uima.analysis_component.AnalysisComponent_ImplBase- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
-