Package de.julielab.jules.ae.genemapping
Class GeneMappingAnnotator
- 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.jules.ae.genemapping.GeneMappingAnnotator
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class GeneMappingAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPONENT_IDstatic java.lang.StringCONTEXT_WINDOW_SIZEstatic java.lang.StringENTITY_MAPPING_TYPESstatic java.lang.StringMAPPER_CONFIG_FILEstatic java.lang.StringTOKEN_CONTEXT
-
Constructor Summary
Constructors Constructor Description GeneMappingAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.apache.uima.UimaContext aContext)initiaziation of GeneMapper: load the index, get some parametersvoidprocess(org.apache.uima.jcas.JCas aJCas)The process method.-
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
-
COMPONENT_ID
public static final java.lang.String COMPONENT_ID
-
CONTEXT_WINDOW_SIZE
public static final java.lang.String CONTEXT_WINDOW_SIZE
- See Also:
- Constant Field Values
-
TOKEN_CONTEXT
public static final java.lang.String TOKEN_CONTEXT
- See Also:
- Constant Field Values
-
ENTITY_MAPPING_TYPES
public static final java.lang.String ENTITY_MAPPING_TYPES
- See Also:
- Constant Field Values
-
MAPPER_CONFIG_FILE
public static final java.lang.String MAPPER_CONFIG_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationExceptioninitiaziation of GeneMapper: load the index, get some parameters- 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.AnalysisEngineProcessExceptionThe process method. loop over all entity types to be considered and do a mapping for all entities of this type- Specified by:
processin classorg.apache.uima.analysis_component.JCasAnnotator_ImplBase- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
-