public class DependingVerbsFeatureExtractor extends java.lang.Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
FEAT_NAME |
Constructor and Description |
---|
DependingVerbsFeatureExtractor() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Feature> |
extract(JCas jcas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Extract features for the pair of named entity mentions.
|
private static java.util.List<Feature> |
getDependingVerbFeature(JCas jcas,
IdentifiedAnnotation arg) |
private static ConllDependencyNode |
getVerbAncestor(ConllDependencyNode dnode) |
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 static java.util.List<Feature> getDependingVerbFeature(JCas jcas, IdentifiedAnnotation arg)
private static ConllDependencyNode getVerbAncestor(ConllDependencyNode dnode)