Package de.julielab.genemapper.uima
Class GeneMapperAnnotator
- 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.genemapper.uima.GeneMapperAnnotator
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class GeneMapperAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENT_IDstatic StringCONTEXT_WINDOW_SIZEstatic StringENTITY_MAPPING_TYPESstatic StringMAPPER_CONFIG_FILEstatic StringREMOVE_EXISTING_RESOURCE_ENTRIESstatic StringTOKEN_CONTEXT
-
Constructor Summary
Constructors Constructor Description GeneMapperAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.apache.uima.UimaContext aContext)initialization 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 String COMPONENT_ID
-
CONTEXT_WINDOW_SIZE
public static final String CONTEXT_WINDOW_SIZE
- See Also:
- Constant Field Values
-
TOKEN_CONTEXT
public static final String TOKEN_CONTEXT
- See Also:
- Constant Field Values
-
ENTITY_MAPPING_TYPES
public static final String ENTITY_MAPPING_TYPES
- See Also:
- Constant Field Values
-
MAPPER_CONFIG_FILE
public static final String MAPPER_CONFIG_FILE
- See Also:
- Constant Field Values
-
REMOVE_EXISTING_RESOURCE_ENTRIES
public static final String REMOVE_EXISTING_RESOURCE_ENTRIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationExceptioninitialization 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
-
-