public class PruningPreExtractor extends ProducerConsumer<Pair<SenseInstance,SenseStructure>>
ProducerConsumer.Consumer, ProducerConsumer.Producer
Modifier and Type | Field and Description |
---|---|
protected List<edu.illinois.cs.cogcomp.verbsense.experiment.PreExtractRecord> |
buffer |
protected FeatureVectorCacheFile |
cache |
activeConsumers, count, data, done, numConsumers, theQueue
Constructor and Description |
---|
PruningPreExtractor(SenseManager manager,
FeatureVectorCacheFile examples,
FeatureVectorCacheFile cache,
int nThreads) |
Modifier and Type | Method and Description |
---|---|
protected void |
consume(Pair<SenseInstance,SenseStructure> input) |
void |
finalize() |
protected String |
getStatus() |
protected void |
initialize() |
protected boolean |
prerequisiteCheck(Pair<SenseInstance,SenseStructure> input) |
protected List<Pair<SenseInstance,SenseStructure>> |
process(Pair<SenseInstance,SenseStructure> input) |
run
protected final FeatureVectorCacheFile cache
protected final List<edu.illinois.cs.cogcomp.verbsense.experiment.PreExtractRecord> buffer
public PruningPreExtractor(SenseManager manager, FeatureVectorCacheFile examples, FeatureVectorCacheFile cache, int nThreads)
protected void initialize()
initialize
in class ProducerConsumer<Pair<SenseInstance,SenseStructure>>
protected boolean prerequisiteCheck(Pair<SenseInstance,SenseStructure> input)
prerequisiteCheck
in class ProducerConsumer<Pair<SenseInstance,SenseStructure>>
protected void consume(Pair<SenseInstance,SenseStructure> input)
consume
in class ProducerConsumer<Pair<SenseInstance,SenseStructure>>
protected String getStatus()
getStatus
in class ProducerConsumer<Pair<SenseInstance,SenseStructure>>
protected List<Pair<SenseInstance,SenseStructure>> process(Pair<SenseInstance,SenseStructure> input)
process
in class ProducerConsumer<Pair<SenseInstance,SenseStructure>>
Copyright © 2017. All rights reserved.