public class WriteCoocurrencesToLoadfile2
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Cooccurrences. Snippet on same file.
Format varies, but has the general structure:
cd to {outputFileDir}cd . (if you ran it again...)mysql -uroot --local-infileuse {outputFile}LOAD DATA LOCAL INFILE '{outputFile}' INTO TABLE relations FIELDS TERMINATED BY ' ' LINES TERMINATED BY '\n' (`list`,`of`,`your`,`fields`, ...);
| Modifier and Type | Field and Description |
|---|---|
protected String |
annot1Type |
protected String |
annot2Type |
protected int |
cooccCnt |
protected String |
cooccurrenceType |
protected static org.slf4j.Logger |
LOG |
protected String |
outputFile |
protected LoadDataFileWriter |
writer |
protected boolean |
writeSnippet |
| Constructor and Description |
|---|
WriteCoocurrencesToLoadfile2() |
| Modifier and Type | Method and Description |
|---|---|
void |
collectionProcessComplete() |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas) |
static String |
snippet(org.apache.uima.jcas.JCas jCas,
int snippetBegin,
int snippetEnd,
org.apache.uima.jcas.tcas.Annotation a1,
org.apache.uima.jcas.tcas.Annotation a2) |
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextprotected static org.slf4j.Logger LOG
protected String outputFile
protected String annot1Type
protected String annot2Type
protected String cooccurrenceType
protected boolean writeSnippet
protected LoadDataFileWriter writer
protected int cooccCnt
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.AnalysisEngineProcessExceptionpublic static String snippet(org.apache.uima.jcas.JCas jCas, int snippetBegin, int snippetEnd, org.apache.uima.jcas.tcas.Annotation a1, org.apache.uima.jcas.tcas.Annotation a2)
public void collectionProcessComplete()
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
collectionProcessComplete in interface org.apache.uima.analysis_component.AnalysisComponentcollectionProcessComplete in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2015 Bluebrain Project. All rights reserved.