org.apache.ctakes.assertion.medfacts.cleartk.extractors
Class TreeFragmentFeatureExtractor

java.lang.Object
  extended by org.apache.ctakes.assertion.medfacts.cleartk.extractors.TreeFragmentFeatureExtractor
All Implemented Interfaces:
org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor
Direct Known Subclasses:
AboveLeftFragmentExtractor, AboveRightFragmentExtractor

public abstract class TreeFragmentFeatureExtractor
extends Object
implements org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor


Field Summary
protected static HashSet<SimpleTree> frags
           
static String PARAM_OUTPUTDIR
           
static String PARAM_SEMDIR
           
protected  String prefix
           
protected  SemanticClasses sems
           
 
Constructor Summary
TreeFragmentFeatureExtractor(String prefix, String resourceFilename)
           
 
Method Summary
abstract  List<org.cleartk.classifier.Feature> extract(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_OUTPUTDIR

public static final String PARAM_OUTPUTDIR
See Also:
Constant Field Values

PARAM_SEMDIR

public static final String PARAM_SEMDIR
See Also:
Constant Field Values

frags

protected static HashSet<SimpleTree> frags

sems

protected SemanticClasses sems

prefix

protected String prefix
Constructor Detail

TreeFragmentFeatureExtractor

public TreeFragmentFeatureExtractor(String prefix,
                                    String resourceFilename)
                             throws org.cleartk.util.CleartkInitializationException
Throws:
org.cleartk.util.CleartkInitializationException
Method Detail

extract

public abstract List<org.cleartk.classifier.Feature> extract(org.apache.uima.jcas.JCas jcas,
                                                             org.apache.uima.jcas.tcas.Annotation annotation)
Specified by:
extract in interface org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.