public class MentionClusterAttributeFeaturesExtractor extends Object implements RelationFeaturesExtractor<CollectionTextRelation,IdentifiedAnnotation>, org.cleartk.ml.feature.extractor.FeatureExtractor1<Markable>
Constructor and Description |
---|
MentionClusterAttributeFeaturesExtractor() |
Modifier and Type | Method and Description |
---|---|
List<org.cleartk.ml.Feature> |
extract(org.apache.uima.jcas.JCas jCas,
CollectionTextRelation cluster,
IdentifiedAnnotation mention)
Extract features for the pair of named entity mentions.
|
List<org.cleartk.ml.Feature> |
extract(org.apache.uima.jcas.JCas view,
Markable mention) |
public MentionClusterAttributeFeaturesExtractor()
public List<org.cleartk.ml.Feature> extract(org.apache.uima.jcas.JCas jCas, CollectionTextRelation cluster, IdentifiedAnnotation mention) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
RelationFeaturesExtractor
extract
in interface RelationFeaturesExtractor<CollectionTextRelation,IdentifiedAnnotation>
jCas
- The JCas containing the two named entity mentions.cluster
- The first identified annotation in the text.mention
- The second identified annotation in the text.org.apache.uima.analysis_engine.AnalysisEngineProcessException
public List<org.cleartk.ml.Feature> extract(org.apache.uima.jcas.JCas view, Markable mention) throws org.cleartk.ml.feature.extractor.CleartkExtractorException
extract
in interface org.cleartk.ml.feature.extractor.FeatureExtractor1<Markable>
org.cleartk.ml.feature.extractor.CleartkExtractorException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.