|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of examples.public interface DocExampleExtractor<T>
This interface specifies a type of ExampleExtractor that extracts examples from Docs.
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 |
---|
T next()
next
in interface LBJ2.parse.Parser
java.util.List<T> getExamples()
void recordEquivalence()
Doc getDoc()
void setDoc(Doc doc)
doc
- The document.void reset()
reset
in interface LBJ2.parse.Parser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |