public class ListFeaturesExtractor extends java.lang.Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Constructor and Description |
---|
ListFeaturesExtractor() |
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.Collection<? extends Feature> |
getArgFeats(JCas jCas,
IdentifiedAnnotation primeArg,
IdentifiedAnnotation secondArg,
java.lang.String prefix) |
private static java.lang.String |
getKey(Annotation annot) |
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.Collection<? extends Feature> getArgFeats(JCas jCas, IdentifiedAnnotation primeArg, IdentifiedAnnotation secondArg, java.lang.String prefix)
private static java.lang.String getKey(Annotation annot)