public class SubjectAttributeClassifier extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DONOR_DEPPATH |
static String |
DONOR_DEPTOK |
static String |
DONOR_OR |
static String |
DONOR_SRLARG |
static String |
DONOR_TOKEN |
static String |
FAMILY_DEPPATH |
static String |
FAMILY_DEPTOK |
static String |
FAMILY_OR |
static String |
FAMILY_SRLARG |
static String |
FAMILY_TOKEN |
static ArrayList<String> |
FeatureIndex |
static String |
OTHER_DEPPATH |
static String |
OTHER_DEPTOK |
static String |
OTHER_OR |
static String |
OTHER_SRLARG |
static String |
OTHER_TOKEN |
Constructor and Description |
---|
SubjectAttributeClassifier() |
Modifier and Type | Method and Description |
---|---|
static String |
classifyWithLogic(HashMap<String,Boolean> vfeat) |
static HashMap<String,Boolean> |
extract(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation mention) |
static String |
getSubject(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation mention) |
static boolean |
isDonorTerm(org.apache.uima.jcas.tcas.Annotation arg) |
static boolean |
isFamilyTerm(org.apache.uima.jcas.tcas.Annotation arg) |
static boolean |
isOtherTerm(org.apache.uima.jcas.tcas.Annotation arg) |
static void |
main(String[] args) |
public static final String DONOR_TOKEN
public static final String DONOR_SRLARG
public static final String DONOR_DEPPATH
public static final String DONOR_DEPTOK
public static final String DONOR_OR
public static final String FAMILY_TOKEN
public static final String FAMILY_SRLARG
public static final String FAMILY_DEPPATH
public static final String FAMILY_DEPTOK
public static final String FAMILY_OR
public static final String OTHER_TOKEN
public static final String OTHER_SRLARG
public static final String OTHER_DEPPATH
public static final String OTHER_DEPTOK
public static final String OTHER_OR
public static String getSubject(org.apache.uima.jcas.JCas jCas, IdentifiedAnnotation mention)
public static HashMap<String,Boolean> extract(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation mention)
public static boolean isDonorTerm(org.apache.uima.jcas.tcas.Annotation arg)
public static boolean isFamilyTerm(org.apache.uima.jcas.tcas.Annotation arg)
public static boolean isOtherTerm(org.apache.uima.jcas.tcas.Annotation arg)
public static void main(String[] args)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.