@PipeBitInfo(name="Degree of Annotator", description="Annotates Degree Of relations.", role=ANNOTATOR, dependencies={SENTENCE,IDENTIFIED_ANNOTATION}, products=DEGREE_RELATION) public class DegreeOfRelationExtractorAnnotator extends RelationExtractorAnnotator
EventMention
s and
Modifier
s.RelationExtractorAnnotator.IdentifiedAnnotationPair
category_frequency, 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(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2,
String predictedCategory)
Create a UIMA relation type based on arguments and the relation label.
|
List<RelationExtractorAnnotator.IdentifiedAnnotationPair> |
getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas identifiedAnnotationView,
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 Class<? extends BinaryTextRelation> |
getRelationClass() |
classify, clearCategoryFrequency, getFeatureExtractors, getRelationCategory, initialize, process
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
protected Class<? extends BinaryTextRelation> getRelationClass()
getRelationClass
in class RelationExtractorAnnotator
public List<RelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas identifiedAnnotationView, org.apache.uima.jcas.tcas.Annotation sentence)
RelationExtractorAnnotator
getCandidateRelationArgumentPairs
in class RelationExtractorAnnotator
protected void createRelation(org.apache.uima.jcas.JCas jCas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2, 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 Class<? extends org.apache.uima.jcas.tcas.Annotation> getCoveringClass()
getCoveringClass
in class RelationExtractorAnnotator
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.