edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors
Interface DocExampleExtractor<T>

Type Parameters:
T - The type of examples.
All Superinterfaces:
LBJ2.parse.Parser
All Known Subinterfaces:
CExampleExtractor
All Known Implementing Classes:
CExampleExtractorBasic, CExExClosestPosAllNeg, CExExtractorUntilTrue, DocFilteredBatchExEx, IntroExEx

public interface DocExampleExtractor<T>
extends LBJ2.parse.Parser

This interface specifies a type of ExampleExtractor that extracts examples from Docs.

Author:
Eric Bengtson

Method Summary
 Doc getDoc()
          Get the document.
 java.util.List<T> getExamples()
          If implementation isn't batch, then getExamples should return the output of repeated calls to next() with no intervening calls.
 T next()
          Get the next example.
 void recordEquivalence()
          Does nothing unless non-batch.
 void reset()
           
 void setDoc(Doc doc)
          Sets the document and resets.
 
Methods inherited from interface LBJ2.parse.Parser
close
 

Method Detail

next

T next()
Get the next example.

Specified by:
next in interface LBJ2.parse.Parser

getExamples

java.util.List<T> getExamples()
If implementation isn't batch, then getExamples should return the output of repeated calls to next() with no intervening calls.

Returns:
A list of all examples.

recordEquivalence

void recordEquivalence()
Does nothing unless non-batch.


getDoc

Doc getDoc()
Get the document.

Returns:
The document.

setDoc

void setDoc(Doc doc)
Sets the document and resets.

Parameters:
doc - The document.

reset

void reset()
Specified by:
reset in interface LBJ2.parse.Parser