public class Baseline4EntityMentionPairRelationExtractorAnnotator extends RelationExtractorAnnotator
RelationExtractorAnnotator.IdentifiedAnnotationPair
coin, NO_RELATION_CATEGORY, PARAM_PROBABILITY_OF_KEEPING_A_NEGATIVE_EXAMPLE, probabilityOfKeepingANegativeExample
Constructor and Description |
---|
Baseline4EntityMentionPairRelationExtractorAnnotator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
classify(java.util.List<Feature> features)
Predict an outcome given a set of features.
|
java.util.List<RelationExtractorAnnotator.IdentifiedAnnotationPair> |
getCandidateRelationArgumentPairs(JCas identifiedAnnotationView,
Annotation sentence)
Selects the relevant mentions/annotations within a covering annotation for
relation identification/extraction.
|
protected java.lang.Class<? extends Annotation> |
getCoveringClass() |
createRelation, getFeatureExtractors, getRelationCategory, getRelationClass, initialize, process
public Baseline4EntityMentionPairRelationExtractorAnnotator()
protected java.lang.Class<? extends Annotation> getCoveringClass()
getCoveringClass
in class RelationExtractorAnnotator
public java.util.List<RelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(JCas identifiedAnnotationView, Annotation sentence)
RelationExtractorAnnotator
getCandidateRelationArgumentPairs
in class RelationExtractorAnnotator
public java.lang.String classify(java.util.List<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.