public class ExtractSameCoocurrences extends ExtractCoocurrences
Annotation class.WriteCoocurrencesToLoadfile to write these
cooccurrences to a fileannotation1, annotation2, annotationStr1, annotationStr2, cooccurrenceType, enclosingScope, enclosingScopeStr, firstIdFields, firstIdFieldsRaw, firstIdMethods, keepOnlyNearestNeighbors, LOG, PARAM_KEEP_ONLY_NEAREST_NEIGHBORS, secondIdFields, secondIdFieldsRaw, secondIdMethods| Constructor and Description |
|---|
ExtractSameCoocurrences() |
| 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[] ids1,
String[] ids2)
only add 1/2 the co-occurences, otherwise they would be counted 2 times.
|
void |
initialize(org.apache.uima.UimaContext context) |
processgetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class ExtractCoocurrencesorg.apache.uima.resource.ResourceInitializationExceptionprotected 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[] ids1, String[] ids2)
filterCooccurence in class ExtractCoocurrencesCopyright © 2015 Bluebrain Project. All rights reserved.