public class TemporalPETFlatExtractor extends java.lang.Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
FEAT_NAME |
Constructor and Description |
---|
TemporalPETFlatExtractor() |
Modifier and Type | Method and Description |
---|---|
static void |
addOtherTimes(JCas jcas,
TopTreebankNode root,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2) |
java.util.List<Feature> |
extract(JCas jcas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Extract features for the pair of named entity mentions.
|
private java.util.List<java.lang.String> |
getSubTreeStrings(SimpleTree subtree) |
static void |
moveTimexDownToNP(SimpleTree tree) |
static void |
simplifyGCG(SimpleTree tree) |
private java.util.List<Feature> |
traverseTreeForDPath(SimpleTree tree) |
private static final java.lang.String FEAT_NAME
public java.util.List<Feature> extract(JCas jcas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2) throws 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.AnalysisEngineProcessException
private java.util.List<Feature> traverseTreeForDPath(SimpleTree tree)
private java.util.List<java.lang.String> getSubTreeStrings(SimpleTree subtree)
public static void addOtherTimes(JCas jcas, TopTreebankNode root, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2)
public static void moveTimexDownToNP(SimpleTree tree)
public static void simplifyGCG(SimpleTree tree)