|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.util.eval.CrossValidationPartitioner.TrainingSampleStream<E>
E
- public static class CrossValidationPartitioner.TrainingSampleStream<E>
The TrainingSampleStream
which iterates over
all training elements.
Note:
After the TestSampleStream
was obtained
the TrainingSampleStream
must not be used
anymore, otherwise a IllegalStateException
is thrown.
The ObjectStream>
s must not be used anymore after the
CrossValidationPartitioner
was moved
to one of next partitions. If they are called anyway
a IllegalStateException
is thrown.
Method Summary | |
---|---|
void |
close()
Closes the ObjectStream and releases all allocated
resources. |
ObjectStream<E> |
getTestSampleStream()
Retrieves the ObjectStream over the test/evaluations
elements and poisons this TrainingSampleStream . |
E |
read()
Returns the next object. |
void |
reset()
Throws UnsupportedOperationException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public E read() throws IOException
ObjectStream
read
in interface ObjectStream<E>
IOException
public void reset()
UnsupportedOperationException
reset
in interface ObjectStream<E>
public void close() throws IOException
ObjectStream
ObjectStream
and releases all allocated
resources. After close was called its not allowed to call
read or reset.
close
in interface ObjectStream<E>
IOException
public ObjectStream<E> getTestSampleStream() throws IOException
ObjectStream
over the test/evaluations
elements and poisons this TrainingSampleStream
.
From now on calls to the hasNext and next methods are forbidden
and will raise anIllegalArgumentException
.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |