public class TreeHeightBaseline extends RelationExtractorAnnotator
RelationExtractorAnnotator.IdentifiedAnnotationPair
category_frequency, coin, NO_RELATION_CATEGORY, PARAM_PROBABILITY_OF_KEEPING_A_NEGATIVE_EXAMPLE, probabilityOfKeepingANegativeExample
Constructor and Description |
---|
TreeHeightBaseline() |
Modifier and Type | Method and Description |
---|---|
String |
classify(List<org.cleartk.ml.Feature> features)
Predict an outcome given a set of features.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(File modelDirectory) |
protected List<RelationExtractorAnnotator.IdentifiedAnnotationPair> |
getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation sentence)
Selects the relevant mentions/annotations within a covering annotation for
relation identification/extraction.
|
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> |
getCoveringClass() |
protected List<RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>> |
getFeatureExtractors()
Defines the list of feature extractors used by the classifier.
|
clearCategoryFrequency, createRelation, getRelationCategory, getRelationClass, initialize, process
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(File modelDirectory) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> getCoveringClass()
getCoveringClass
in class RelationExtractorAnnotator
public String classify(List<org.cleartk.ml.Feature> features)
RelationExtractorAnnotator
classifier
. Subclasses may override
this method to implement more complex classification procedures.classify
in class RelationExtractorAnnotator
features
- The features to be classified.protected List<RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>> getFeatureExtractors()
RelationExtractorAnnotator
getFeatureExtractors
in class RelationExtractorAnnotator
protected List<RelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation sentence)
RelationExtractorAnnotator
getCandidateRelationArgumentPairs
in class RelationExtractorAnnotator
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.