public class MentionClusterDistSemExtractor extends Object implements RelationFeaturesExtractor<CollectionTextRelation,IdentifiedAnnotation>
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_SIM |
Constructor and Description |
---|
MentionClusterDistSemExtractor() |
MentionClusterDistSemExtractor(String embeddingsPath) |
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.
|
public static final double DEFAULT_SIM
public MentionClusterDistSemExtractor() throws FileNotFoundException, IOException
FileNotFoundException
IOException
public MentionClusterDistSemExtractor(String embeddingsPath) throws FileNotFoundException, IOException
FileNotFoundException
IOException
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
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.