@PipeBitInfo(name="E-E CRF TLinker", description="Creates Event - Event TLinks with Conditional Random Field.", dependencies={SECTION,SENTENCE,EVENT}, products=TEMPORAL_RELATION) public class EventEventCRFRelationAnnotator extends TemporalSequenceAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static boolean |
eventExpansion |
static String |
NO_RELATION_CATEGORY |
static String |
PARAM_TIMEX_VIEW |
protected String |
timexView |
Constructor and Description |
---|
EventEventCRFRelationAnnotator() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(File modelDirectory)
Deprecated.
use String path instead of File.
ClearTK will automatically Resolve the String to an InputStream.
This will allow resources to be read within from a jar as well as File.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(String modelPath) |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createDataWriterDescription(Class<org.cleartk.ml.crfsuite.CrfSuiteStringOutcomeDataWriter> dataWriterClass,
File outputDirectory,
double probabilityOfKeepingANegativeExample,
boolean expandEvent) |
protected void |
createRelation(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2,
String predictedCategory) |
protected List<RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>> |
getFeatureExtractors() |
protected String |
getRelationCategory(Map<List<org.apache.uima.jcas.tcas.Annotation>,BinaryTextRelation> relationLookup,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2) |
void |
process(org.apache.uima.jcas.JCas jCas,
Segment segment) |
process
classify, collectionProcessComplete, initialize, isTraining
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String NO_RELATION_CATEGORY
public static final String PARAM_TIMEX_VIEW
protected String timexView
public static boolean eventExpansion
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createDataWriterDescription(Class<org.cleartk.ml.crfsuite.CrfSuiteStringOutcomeDataWriter> dataWriterClass, File outputDirectory, double probabilityOfKeepingANegativeExample, boolean expandEvent) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(String modelPath) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(File modelDirectory) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
protected List<RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>> getFeatureExtractors()
public void process(org.apache.uima.jcas.JCas jCas, Segment segment) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class TemporalSequenceAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected void createRelation(org.apache.uima.jcas.JCas jCas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2, String predictedCategory)
protected String getRelationCategory(Map<List<org.apache.uima.jcas.tcas.Annotation>,BinaryTextRelation> relationLookup, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.