Package de.julielab.genemapper.uima
Class GeneMentionTaxIdCountWriter
- 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.GeneMentionTaxIdCountWriter
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class GeneMentionTaxIdCountWriter extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_OUTPUT_PATH
-
Constructor Summary
Constructors Constructor Description GeneMentionTaxIdCountWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbatchProcessComplete()voidcollectionProcessComplete()voidincrementCountsForCoveredOrganisms(String normalizedGeneName, de.julielab.jcore.types.Annotation a, Consumer<de.julielab.genemapper.uima.GeneMentionTaxIdCountWriter.GeneOccurrenceCount> npIncrementer, Set<de.julielab.genemapper.uima.GeneMentionTaxIdCountWriter.GeneNameTaxPair> mentionsCountedForDoc, de.julielab.jcore.utility.index.JCoReTreeMapAnnotationIndex<Long,de.julielab.jcore.types.Organism> orgIndex, Map<de.julielab.genemapper.uima.GeneMentionTaxIdCountWriter.GeneNameTaxPair,de.julielab.genemapper.uima.GeneMentionTaxIdCountWriter.GeneOccurrenceCount> counts)voidinitialize(org.apache.uima.UimaContext aContext)voidprocess(org.apache.uima.jcas.JCas jCas)-
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_OUTPUT_PATH
public static final String PARAM_OUTPUT_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException- 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 jCas)
- Specified by:
processin classorg.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
batchProcessComplete
public void batchProcessComplete()
- Specified by:
batchProcessCompletein interfaceorg.apache.uima.analysis_component.AnalysisComponent- Overrides:
batchProcessCompletein classorg.apache.uima.analysis_component.AnalysisComponent_ImplBase
-
incrementCountsForCoveredOrganisms
public void incrementCountsForCoveredOrganisms(String normalizedGeneName, de.julielab.jcore.types.Annotation a, Consumer<de.julielab.genemapper.uima.GeneMentionTaxIdCountWriter.GeneOccurrenceCount> npIncrementer, Set<de.julielab.genemapper.uima.GeneMentionTaxIdCountWriter.GeneNameTaxPair> mentionsCountedForDoc, de.julielab.jcore.utility.index.JCoReTreeMapAnnotationIndex<Long,de.julielab.jcore.types.Organism> orgIndex, Map<de.julielab.genemapper.uima.GeneMentionTaxIdCountWriter.GeneNameTaxPair,de.julielab.genemapper.uima.GeneMentionTaxIdCountWriter.GeneOccurrenceCount> counts)
-
collectionProcessComplete
public void collectionProcessComplete()
- Specified by:
collectionProcessCompletein interfaceorg.apache.uima.analysis_component.AnalysisComponent- Overrides:
collectionProcessCompletein classorg.apache.uima.analysis_component.AnalysisComponent_ImplBase
-
-