public class TemporalPETFlatExtractor extends Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Constructor and Description |
---|
TemporalPETFlatExtractor() |
Modifier and Type | Method and Description |
---|---|
static void |
addOtherTimes(org.apache.uima.jcas.JCas jcas,
TopTreebankNode root,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2) |
List<org.cleartk.ml.Feature> |
extract(org.apache.uima.jcas.JCas jcas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Extract features for the pair of named entity mentions.
|
static void |
moveTimexDownToNP(SimpleTree tree) |
static void |
simplifyGCG(SimpleTree tree) |
public List<org.cleartk.ml.Feature> extract(org.apache.uima.jcas.JCas jcas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
RelationFeaturesExtractor
extract
in interface RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
jcas
- The JCas containing the two named entity mentions.arg1
- The first identified annotation in the text.arg2
- The second identified annotation in the text.org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static void addOtherTimes(org.apache.uima.jcas.JCas jcas, TopTreebankNode root, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2)
public static void moveTimexDownToNP(SimpleTree tree)
public static void simplifyGCG(SimpleTree tree)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.