public class Baseline3DegreeOfRelationExtractorAnnotator extends RelationExtractorAnnotator
RelationExtractorAnnotator.IdentifiedAnnotationPair
coin, NO_RELATION_CATEGORY, PARAM_PROBABILITY_OF_KEEPING_A_NEGATIVE_EXAMPLE, probabilityOfKeepingANegativeExample
Constructor and Description |
---|
Baseline3DegreeOfRelationExtractorAnnotator() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
checkForModifierBetween(JCas jCas,
Modifier modifier,
EntityMention entity) |
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.
|
java.lang.Class<? extends Annotation> |
getCoveringClass() |
private static java.util.List<EntityMention> |
getEntitiesSuitableForDegreeOf(java.util.List<EntityMention> entityMentions) |
private static EntityMention |
getNearestEntity(JCas jCas,
Modifier modifier,
java.util.List<EntityMention> entityMentions) |
createRelation, getFeatureExtractors, getRelationCategory, getRelationClass, initialize, process
public Baseline3DegreeOfRelationExtractorAnnotator()
public 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
private static java.util.List<EntityMention> getEntitiesSuitableForDegreeOf(java.util.List<EntityMention> entityMentions)
private static EntityMention getNearestEntity(JCas jCas, Modifier modifier, java.util.List<EntityMention> entityMentions)
private static boolean checkForModifierBetween(JCas jCas, Modifier modifier, EntityMention entity)
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.