public class TokenFeatureExtractor extends Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Constructor and Description |
---|
TokenFeatureExtractor() |
Modifier and Type | Method and Description |
---|---|
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 |
getAnimate(String s1) |
static String |
getGender(String s1) |
static String |
getPerson(String s1) |
static boolean |
isDefinite(String s) |
static boolean |
isDemonstrative(String s) |
static boolean |
isGeneric(IdentifiedAnnotation mention) |
static boolean |
isHistory(IdentifiedAnnotation mention) |
static boolean |
isNegated(IdentifiedAnnotation mention) |
static boolean |
isPatient(IdentifiedAnnotation mention) |
static boolean |
isTitle(String s1) |
static boolean |
isUncertain(IdentifiedAnnotation mention) |
static boolean |
numberSingular(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation arg,
String s1) |
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 isDemonstrative(String s)
public static boolean isDefinite(String s)
public static boolean numberSingular(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation arg, String s1)
public static boolean getAnimate(String s1)
public static boolean isTitle(String s1)
public static boolean isNegated(IdentifiedAnnotation mention)
public static boolean isUncertain(IdentifiedAnnotation mention)
public static boolean isGeneric(IdentifiedAnnotation mention)
public static boolean isPatient(IdentifiedAnnotation mention)
public static boolean isHistory(IdentifiedAnnotation mention)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.