public class DatasetReader extends Object
| Constructor and Description |
|---|
DatasetReader(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reading buffer
|
boolean |
hasNext()
Checks whether there is at least another example to read
|
Example |
readNextExample()
Returns the next example
|
void |
restartReading()
Resets the reading such that the next example will be the first one
|
public DatasetReader(String filename) throws IOException
IOExceptionpublic void restartReading()
throws IOException
IOExceptionpublic boolean hasNext()
public Example readNextExample() throws IOException, InstantiationException
IOExceptionInstantiationExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.