|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.ExampleExtractor<T>
edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.BatchExExtractor<T>
T - The type of example.public abstract class BatchExExtractor<T>
The base class for all example extractors that use a batch process.
| Field Summary | |
|---|---|
private java.util.List<T> |
m_exampleCache
|
private int |
m_exampleCacheNextIx
|
| Constructor Summary | |
|---|---|
BatchExExtractor()
|
|
| Method Summary | |
|---|---|
protected abstract java.util.List<T> |
generateAllExamples()
Generate all (non-filtered) examples. |
java.util.List<T> |
getExamples()
Gets all the examples. |
protected T |
getNextCached()
Gets the next entry in the cache, The cache will be populated with examples from getExamples(). |
T |
next()
Get the next example. |
void |
recordEquivalence()
Does nothing, since extractor is a batch extractor. |
void |
reset()
Reset the extractor. |
| Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.ExampleExtractor |
|---|
close, enqueue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.List<T> m_exampleCache
private int m_exampleCacheNextIx
| Constructor Detail |
|---|
public BatchExExtractor()
| Method Detail |
|---|
protected abstract java.util.List<T> generateAllExamples()
public T next()
next in interface LBJ2.parse.Parsernext in class ExampleExtractor<T>public java.util.List<T> getExamples()
public void recordEquivalence()
protected T getNextCached()
getExamples().
public void reset()
next()
should begin returning examples starting with the first example.
reset in interface LBJ2.parse.Parserreset in class ExampleExtractor<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||