public class NamedEntityFeaturesExtractor extends java.lang.Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Modifier and Type | Field and Description |
---|---|
private FeatureExtractor1 |
mention1FeaturesExtractor
All extractors for mention 1, with features named to distinguish them from mention 2
|
private FeatureExtractor1 |
mention2FeaturesExtractor
All extractors for mention 2, with features named to distinguish them from mention 1
|
private FeatureExtractor1 |
namedEntityType |
private DistanceExtractor |
nEntityMentionsBetween
Number of named entities between the two mentions
|
Constructor and Description |
---|
NamedEntityFeaturesExtractor() |
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 FeatureExtractor1 namedEntityType
private FeatureExtractor1 mention1FeaturesExtractor
private FeatureExtractor1 mention2FeaturesExtractor
private DistanceExtractor nEntityMentionsBetween
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