public class HistoryAttributeClassifier
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HistoryAttributeClassifier.AnnotLocationComparator |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DISCUSSION_DEPPATH |
static java.util.ArrayList<java.lang.String> |
FeatureIndex |
private static java.lang.String[] |
GHC_HIST_SECTIONS |
private static java.lang.String |
IN_HIST_SECTION |
private static java.lang.String |
POSTCOORD_NMOD |
private static java.lang.String |
SUBSUMED_ANNOT |
private static java.lang.String |
SUBSUMED_CHUNK |
Constructor and Description |
---|
HistoryAttributeClassifier() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Boolean |
classifyWithLogic(java.util.HashMap<java.lang.String,java.lang.Boolean> vfeat) |
static java.util.HashMap<java.lang.String,java.lang.Boolean> |
extract(JCas jCas,
Annotation arg) |
static java.lang.Boolean |
getHistory(JCas jCas,
IdentifiedAnnotation mention) |
private static boolean |
isDiscussionContext(Annotation arg) |
private static boolean |
isDonorTerm(Annotation arg) |
private static boolean |
isInHistSection(Sentence s) |
static void |
main(java.lang.String[] args) |
static java.lang.Boolean |
precededByH_O(JCas jCas,
Annotation arg) |
private static final java.lang.String POSTCOORD_NMOD
private static final java.lang.String DISCUSSION_DEPPATH
private static final java.lang.String SUBSUMED_CHUNK
private static final java.lang.String SUBSUMED_ANNOT
private static final java.lang.String IN_HIST_SECTION
public static java.util.ArrayList<java.lang.String> FeatureIndex
private static final java.lang.String[] GHC_HIST_SECTIONS
public static java.lang.Boolean getHistory(JCas jCas, IdentifiedAnnotation mention)
public static java.lang.Boolean precededByH_O(JCas jCas, Annotation arg)
jCas
- - the jcas of the documentarg
- - the node getting features added to itpublic static java.lang.Boolean classifyWithLogic(java.util.HashMap<java.lang.String,java.lang.Boolean> vfeat)
private static boolean isInHistSection(Sentence s)
public static java.util.HashMap<java.lang.String,java.lang.Boolean> extract(JCas jCas, Annotation arg)
private static boolean isDonorTerm(Annotation arg)
private static boolean isDiscussionContext(Annotation arg)
public static void main(java.lang.String[] args)