public class StringMatchingFeatureExtractor extends Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Constructor and Description |
---|
StringMatchingFeatureExtractor() |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
contentWords(org.apache.uima.jcas.tcas.Annotation a1) |
static boolean |
endMatch(String a,
String b) |
List<org.cleartk.ml.Feature> |
extract(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Extract features for the pair of named entity mentions.
|
static boolean |
inQuote(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation a) |
static boolean |
isPronoun(IdentifiedAnnotation a1) |
static String |
nonDetSubstr(String s) |
static boolean |
soonMatch(String s1,
String s2) |
static boolean |
startMatch(String a,
String b) |
static boolean |
wordOverlap(Set<String> t1,
Set<String> t2) |
static boolean |
wordSubstring(Set<String> t1,
Set<String> t2) |
public List<org.cleartk.ml.Feature> extract(org.apache.uima.jcas.JCas jCas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2) throws org.apache.uima.analysis_engine.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.org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static boolean isPronoun(IdentifiedAnnotation a1)
public static boolean inQuote(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation a)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.