Negex adapted to cTAKES. Checks negation status of named entities. Loads
negex triggers from classpath:
/org/apache/ctakes/ytex/uima/annotators/negex_triggers.txt
The meaning of the certainty and confidence attributes is nowhere documented
for cTakes. There are several ways of handling 'maybes', see below. Default
behavior: certainty attribute for negated & possible terms set to -1
Configure with following uima initialization parameters:
checkPossibilities : should we check for possibilities
negatePossibilities : should possibilities be negated, default = true? if
true,
- negated: polarity=-1, confidence=1
- possible: polarity=-1, confidence=-1
- affirmed: polarity=1, confidence=1
negated: polarity=-1, confidence=1
possible: polarity=1, confidence=-1
affirmed: polarity=1, confidence=1
storeAsInterval
- negated: polarity=-1, confidence = -1
- possible: polarity=1, confidence = 0.5
- affirmed: polarity=1, confidence = 1
Added support for negating arbitrary annotations. Set the targetTypeName to
an annotation type. Will see if it is negated; if so will set the negated and
possible boolean values on the annotation.