public class DegreeOfRelationExtractorAnnotator extends RelationExtractorAnnotator
EventMention
s and
Modifier
s.RelationExtractorAnnotator.IdentifiedAnnotationPair
coin, NO_RELATION_CATEGORY, PARAM_PROBABILITY_OF_KEEPING_A_NEGATIVE_EXAMPLE, probabilityOfKeepingANegativeExample
Constructor and Description |
---|
DegreeOfRelationExtractorAnnotator() |
Modifier and Type | Method and Description |
---|---|
protected void |
createRelation(JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2,
java.lang.String predictedCategory)
Create a UIMA relation type based on arguments and the relation label.
|
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() |
protected java.lang.Class<? extends BinaryTextRelation> |
getRelationClass() |
allowClassifierModelOnClasspath, classify, getFeatureExtractors, getRelationCategory, initialize, process
protected java.lang.Class<? extends BinaryTextRelation> getRelationClass()
getRelationClass
in class RelationExtractorAnnotator
public java.util.List<RelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(JCas identifiedAnnotationView, Annotation sentence)
RelationExtractorAnnotator
getCandidateRelationArgumentPairs
in class RelationExtractorAnnotator
protected void createRelation(JCas jCas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2, java.lang.String predictedCategory)
RelationExtractorAnnotator
createRelation
in class RelationExtractorAnnotator
jCas
- - JCas object, needed to create new UIMA typesarg1
- - First argument to relationarg2
- - Second argument to relationpredictedCategory
- - Name of relationprotected java.lang.Class<? extends Annotation> getCoveringClass()
getCoveringClass
in class RelationExtractorAnnotator