public class DatasetReader extends Object
Modifier and Type | Field and Description |
---|---|
protected BufferedReader |
inputBuffer |
protected String |
nextRow |
Constructor and Description |
---|
DatasetReader(String filename) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkRowValidity() |
void |
close()
Closes the reading buffer
|
boolean |
hasNext()
Checks whether there is at least another example to read
|
protected BufferedReader |
openBufferedReader(String filename) |
Example |
readNextExample()
Returns the next example
|
void |
restartReading()
Resets the reading such that the next example will be the first one
|
protected BufferedReader inputBuffer
protected String nextRow
public DatasetReader(String filename) throws IOException
IOException
protected BufferedReader openBufferedReader(String filename) throws IOException, FileNotFoundException, UnsupportedEncodingException
public void restartReading() throws IOException
IOException
protected void checkRowValidity()
public boolean hasNext()
public Example readNextExample() throws IOException, InstantiationException, ParsingExampleException
IOException
InstantiationException
ParsingExampleException
public void close() throws IOException
IOException
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.