@PipeBitInfo(name="Causal Relation Annotator", description="Annotates Causal relations in sentences.", role=ANNOTATOR, dependencies={SENTENCE,IDENTIFIED_ANNOTATION}, products=GENERIC_RELATION) public class CausesBringsAboutRelationExtractorAnnotator extends RelationExtractorAnnotator
RelationExtractorAnnotator.IdentifiedAnnotationPaircategory_frequency, coin, NO_RELATION_CATEGORY, PARAM_PROBABILITY_OF_KEEPING_A_NEGATIVE_EXAMPLE, probabilityOfKeepingANegativeExample| Constructor and Description |
|---|
CausesBringsAboutRelationExtractorAnnotator() |
| 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, processgetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic CausesBringsAboutRelationExtractorAnnotator()
protected Class<? extends BinaryTextRelation> getRelationClass()
getRelationClass in class RelationExtractorAnnotatorpublic List<RelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas identifiedAnnotationView, org.apache.uima.jcas.tcas.Annotation sentence)
RelationExtractorAnnotatorgetCandidateRelationArgumentPairs in class RelationExtractorAnnotatorprotected void createRelation(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2,
String predictedCategory)
RelationExtractorAnnotatorcreateRelation in class RelationExtractorAnnotatorjCas - - 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 RelationExtractorAnnotatorCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.