public class ExtractCoocurrences
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
WriteCoocurrencesToLoadfile to write these
cooccurrences to a file| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> |
annotation1 |
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> |
annotation2 |
protected String |
annotationStr1 |
protected String |
annotationStr2 |
protected String |
cooccurrenceType |
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> |
enclosingScope |
protected String |
enclosingScopeStr |
protected String[] |
firstIdFields |
protected String |
firstIdFieldsRaw |
protected List<Method> |
firstIdMethods |
protected boolean |
keepOnlyNearestNeighbors |
protected static org.slf4j.Logger |
LOG |
static String |
PARAM_KEEP_ONLY_NEAREST_NEIGHBORS |
protected String[] |
secondIdFields |
protected String |
secondIdFieldsRaw |
protected List<Method> |
secondIdMethods |
| Constructor and Description |
|---|
ExtractCoocurrences() |
| Modifier and Type | Method and Description |
|---|---|
protected Cooccurrence |
filterCooccurence(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation enclosingAnnot,
org.apache.uima.jcas.tcas.Annotation annot1,
org.apache.uima.jcas.tcas.Annotation annot2,
String[] firstIds,
String[] secondIds)
Adds all cooccurrences (no filtering).
|
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas) |
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextprotected static org.slf4j.Logger LOG
protected String enclosingScopeStr
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> enclosingScope
protected String annotationStr1
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> annotation1
protected String firstIdFieldsRaw
protected String[] firstIdFields
protected String annotationStr2
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> annotation2
protected String secondIdFieldsRaw
protected String[] secondIdFields
protected String cooccurrenceType
public static final String PARAM_KEEP_ONLY_NEAREST_NEIGHBORS
protected boolean keepOnlyNearestNeighbors
public void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.apache.uima.fit.component.JCasAnnotator_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas jCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionprotected Cooccurrence filterCooccurence(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation enclosingAnnot, org.apache.uima.jcas.tcas.Annotation annot1, org.apache.uima.jcas.tcas.Annotation annot2, String[] firstIds, String[] secondIds)
jCas - enclosingAnnot - annot1 - annot2 - firstIds - firstIds - Copyright © 2015 Bluebrain Project. All rights reserved.