@PipeBitInfo(name="Degree of Annotator 1", description="Annotates Degree Of relations in sentences containing a single entity mention of a valid degree_of type and a single modifier.", role=ANNOTATOR, dependencies={SENTENCE,IDENTIFIED_ANNOTATION}, products=DEGREE_RELATION) public class Baseline1DegreeOfRelationExtractorAnnotator extends DegreeOfRelationExtractorAnnotator
RelationExtractorAnnotator.IdentifiedAnnotationPaircategory_frequency, coin, NO_RELATION_CATEGORY, PARAM_PROBABILITY_OF_KEEPING_A_NEGATIVE_EXAMPLE, probabilityOfKeepingANegativeExample| Constructor and Description |
|---|
Baseline1DegreeOfRelationExtractorAnnotator() |
| 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.
|
createRelation, getCoveringClass, getRelationClassclearCategoryFrequency, getFeatureExtractors, getRelationCategory, initialize, processgetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic Baseline1DegreeOfRelationExtractorAnnotator()
public List<RelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas identifiedAnnotationView, org.apache.uima.jcas.tcas.Annotation sentence)
RelationExtractorAnnotatorgetCandidateRelationArgumentPairs in class DegreeOfRelationExtractorAnnotatorpublic String classify(List<org.cleartk.ml.Feature> features) throws org.cleartk.ml.CleartkProcessingException
RelationExtractorAnnotatorclassifier. Subclasses may override
this method to implement more complex classification procedures.classify in class RelationExtractorAnnotatorfeatures - The features to be classified.org.cleartk.ml.CleartkProcessingExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.