public class PreExtractor extends ProducerConsumer<TextAnnotation>
ProducerConsumer.Consumer, ProducerConsumer.Producer| Modifier and Type | Field and Description |
|---|---|
protected List<edu.illinois.cs.cogcomp.verbsense.experiment.PreExtractRecord> |
buffer |
protected FeatureVectorCacheFile |
cacheDB |
protected SenseManager |
manager |
activeConsumers, count, data, done, numConsumers, theQueue| Constructor and Description |
|---|
PreExtractor(SenseManager manager,
Iterator<TextAnnotation> data,
int numConsumers,
FeatureVectorCacheFile featureCache) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
consume(TextAnnotation ta) |
protected void |
consumeInstance(SenseInstance x,
SenseStructure y) |
void |
countFeatures(SenseInstance x)
This is where actual feature extraction is taking place.
|
void |
finalize() |
protected String |
getStatus() |
protected void |
initialize() |
protected boolean |
prerequisiteCheck(TextAnnotation ta) |
protected List<TextAnnotation> |
process(TextAnnotation ta) |
runprotected final FeatureVectorCacheFile cacheDB
protected final List<edu.illinois.cs.cogcomp.verbsense.experiment.PreExtractRecord> buffer
protected final SenseManager manager
public PreExtractor(SenseManager manager, Iterator<TextAnnotation> data, int numConsumers, FeatureVectorCacheFile featureCache)
protected void initialize()
initialize in class ProducerConsumer<TextAnnotation>protected boolean prerequisiteCheck(TextAnnotation ta)
prerequisiteCheck in class ProducerConsumer<TextAnnotation>protected void consume(TextAnnotation ta)
consume in class ProducerConsumer<TextAnnotation>protected String getStatus()
getStatus in class ProducerConsumer<TextAnnotation>protected List<TextAnnotation> process(TextAnnotation ta)
process in class ProducerConsumer<TextAnnotation>protected void consumeInstance(SenseInstance x, SenseStructure y) throws Exception
Exceptionpublic void finalize()
throws Exception
public void countFeatures(SenseInstance x) throws EdisonException
FeatureExtractorx - The predicate to extract features from.EdisonExceptionCopyright © 2017. All rights reserved.