@PipeBitInfo(name="Degree of Annotator 2", description="Annotates Degree Of relations between two shortest-distance entities in sentences with multiple modifiers.", role=ANNOTATOR, dependencies={SENTENCE,IDENTIFIED_ANNOTATION}, products=DEGREE_RELATION) public class Baseline2DegreeOfRelationExtractorAnnotator extends RelationExtractorAnnotator
RelationExtractorAnnotator.IdentifiedAnnotationPair
category_frequency, coin, NO_RELATION_CATEGORY, PARAM_PROBABILITY_OF_KEEPING_A_NEGATIVE_EXAMPLE, probabilityOfKeepingANegativeExample
Constructor and Description |
---|
Baseline2DegreeOfRelationExtractorAnnotator() |
Modifier and Type | Method and Description |
---|---|
String |
classify(List<org.cleartk.ml.Feature> features)
Predict an outcome given a set of features.
|
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() |
clearCategoryFrequency, createRelation, getFeatureExtractors, getRelationCategory, getRelationClass, initialize, process
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public Baseline2DegreeOfRelationExtractorAnnotator()
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> getCoveringClass()
getCoveringClass
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
public String classify(List<org.cleartk.ml.Feature> features) throws org.cleartk.ml.CleartkProcessingException
RelationExtractorAnnotator
classifier
. Subclasses may override
this method to implement more complex classification procedures.classify
in class RelationExtractorAnnotator
features
- The features to be classified.org.cleartk.ml.CleartkProcessingException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.