Package de.julielab.jcore.ae.fte
Class FlairTokenEmbeddingAnnotator
- 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.ae.fte.FlairTokenEmbeddingAnnotator
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class FlairTokenEmbeddingAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_COMPUTATION_FILTERstatic StringPARAM_EMBEDDING_PATHstatic StringPARAM_EMBEDDING_SOURCEstatic StringPARAM_PYTHON_EXECUTABLE
-
Constructor Summary
Constructors Constructor Description FlairTokenEmbeddingAnnotator()
-
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_EMBEDDING_PATH
public static final String PARAM_EMBEDDING_PATH
- See Also:
- Constant Field Values
-
PARAM_COMPUTATION_FILTER
public static final String PARAM_COMPUTATION_FILTER
- See Also:
- Constant Field Values
-
PARAM_EMBEDDING_SOURCE
public static final String PARAM_EMBEDDING_SOURCE
- See Also:
- Constant Field Values
-
PARAM_PYTHON_EXECUTABLE
public static final String PARAM_PYTHON_EXECUTABLE
- 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
-
-