public class ClassifiableEntries
extends JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
private int |
iCurrentCtr |
private int |
iNonSmokerCtr |
private int |
iPastSmokerCtr |
private int |
iSmokerCtr |
private int |
iUnknownCtr |
private java.util.Set<java.lang.String> |
iv_allowedClassifications |
private int |
iv_classifiableIdx |
private java.util.Map<java.lang.String,java.util.List<ClassifiableEntry>> |
iv_entryIndexMap |
protected Logger |
iv_logger |
private java.util.List<ClassifiableEntry> |
iv_procEntryList |
private java.util.List<Segment> |
iv_segList |
private java.util.Map<java.lang.Integer,TruthValue> |
iv_truthMap |
private JCas |
jcas_local |
static java.lang.String |
PARAM_ALLOWED_CLASSES
Name of configuration parameter that determines the allowed
Classification values.
|
static java.lang.String |
PARAM_IGNORE_SECTIONS
Sections NOT to be entered in ClassifiableEntries
|
static java.lang.String |
PARAM_PARSE_SECTIONS
Name of configuration parameter that determines whether section headers
will be parsed out and Segments made to cover the section text.
|
static java.lang.String |
PARAM_SMOKING_STATUS_DESC_STEP1KEY
Name of configuration parameter that must be set to the filepath of the
UIMA descriptor ProductionPostSentenceAggregate.xml
|
static java.lang.String |
PARAM_SMOKING_STATUS_DESC_STEP2KEY |
static java.lang.String |
PARAM_TRUTH_FILE
Name of configuration parameter that must be set to the filepath of the
delimited truth file.
|
static java.lang.String |
PARAM_TRUTH_FILE_DELIMITER
Name of configuration parameter that describes the character delimiter
used in the delimited truth file.
|
private ResolutionAnnotator |
ra |
private ResourceManager |
ResMgr |
private java.util.Set<java.lang.String> |
sectionsToIgnore |
private ResourceSpecifier |
taeSpecifierStep1 |
private ResourceSpecifier |
taeSpecifierStep2 |
private AnalysisEngine |
taeStep1 |
private AnalysisEngine |
taeStep2 |
Constructor and Description |
---|
ClassifiableEntries() |
Modifier and Type | Method and Description |
---|---|
private void |
buildProcEntryList() |
void |
collectionProcessComplete(JCas jcas) |
void |
destroy() |
private Segment |
getSegment(ClassifiableEntry rs) |
void |
initialize(UimaContext aContext) |
private void |
initTruthData() |
private boolean |
isSmokingStatusKnown(JCas jcas_local)
determines of value set by KUClassifier
|
private void |
loadTruthData(java.io.File truthFile,
java.lang.String delimiter)
Parses the TRUTH file in delimited format.
|
private void |
performRecordResolution(JCas jcas_local) |
void |
process(JCas jcas) |
private void |
resetCounts() |
private java.lang.String |
resolveClassification()
Given all the unique classifications for a given record, resolve it down
to a single final classifcation.
|
private void |
storeAssignedClasses(java.lang.String smokClass) |
public static final java.lang.String PARAM_SMOKING_STATUS_DESC_STEP1KEY
public static final java.lang.String PARAM_SMOKING_STATUS_DESC_STEP2KEY
public static final java.lang.String PARAM_TRUTH_FILE
public static final java.lang.String PARAM_TRUTH_FILE_DELIMITER
public static final java.lang.String PARAM_ALLOWED_CLASSES
public static final java.lang.String PARAM_PARSE_SECTIONS
public static final java.lang.String PARAM_IGNORE_SECTIONS
private int iv_classifiableIdx
private java.util.List<ClassifiableEntry> iv_procEntryList
private java.util.List<Segment> iv_segList
private java.util.Map<java.lang.String,java.util.List<ClassifiableEntry>> iv_entryIndexMap
private java.util.Map<java.lang.Integer,TruthValue> iv_truthMap
private java.util.Set<java.lang.String> iv_allowedClassifications
private AnalysisEngine taeStep1
private AnalysisEngine taeStep2
private ResourceSpecifier taeSpecifierStep1
private ResourceSpecifier taeSpecifierStep2
protected Logger iv_logger
private int iSmokerCtr
private int iPastSmokerCtr
private int iCurrentCtr
private int iNonSmokerCtr
private int iUnknownCtr
private JCas jcas_local
private ResolutionAnnotator ra
private ResourceManager ResMgr
private java.util.Set<java.lang.String> sectionsToIgnore
public void initialize(UimaContext aContext) throws ResourceInitializationException
ResourceInitializationException
private void initTruthData() throws java.lang.Exception
java.lang.Exception
private void loadTruthData(java.io.File truthFile, java.lang.String delimiter) throws java.lang.Exception
truthFile
- delimiter
- java.lang.Exception
public void process(JCas jcas)
public void destroy()
private boolean isSmokingStatusKnown(JCas jcas_local)
jcas_local
- private Segment getSegment(ClassifiableEntry rs)
private void performRecordResolution(JCas jcas_local) throws AnnotatorProcessException
AnnotatorProcessException
public void collectionProcessComplete(JCas jcas) throws ResourceProcessException, java.io.IOException
ResourceProcessException
java.io.IOException
private java.lang.String resolveClassification()
cList
- private void storeAssignedClasses(java.lang.String smokClass)
private void resetCounts()
private void buildProcEntryList()