public class LeipzigLanguageSampleStream extends Object implements ObjectStream<LanguageSample>
Constructor and Description |
---|
LeipzigLanguageSampleStream(File leipzigFolder,
int sentencesPerSample,
int samplesPerLanguage) |
Modifier and Type | Method and Description |
---|---|
LanguageSample |
read()
Returns the next object.
|
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence
will be repeated exactly.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public LeipzigLanguageSampleStream(File leipzigFolder, int sentencesPerSample, int samplesPerLanguage) throws IOException
IOException
public LanguageSample read() throws IOException
ObjectStream
read
in interface ObjectStream<LanguageSample>
IOException
- if there is an error during readingpublic void reset() throws IOException
ObjectStream
reset
in interface ObjectStream<LanguageSample>
IOException
- if there is an error during reseting the streamCopyright © 2017 The Apache Software Foundation. All rights reserved.