public class CheckSpecialWordRelationExtractor extends java.lang.Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
LOOKUP_PATH |
private |
specialWd |
Constructor and Description |
---|
CheckSpecialWordRelationExtractor() |
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 boolean |
isBefore(IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2) |
private static final java.lang.String LOOKUP_PATH
privatespecialWd
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 boolean isBefore(IdentifiedAnnotation arg1, IdentifiedAnnotation arg2)