| Constructor and Description |
|---|
UkWacDependencyFileIterator(String documentsFile)
Creates an
Iterator over the file where each document returned
contains the sequence of dependency parsed words composing a sentence.. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if there are more documents to return. |
Document |
next()
Returns the next document from the file.
|
void |
remove()
Throws an
UnsupportedOperationException if called. |
public UkWacDependencyFileIterator(String documentsFile) throws IOException
Iterator over the file where each document returned
contains the sequence of dependency parsed words composing a sentence..documentsFile - the file specifying a dependency parsed file in the
CoNLL FormatIOException - if any error occurs when reading
documentsFilepublic boolean hasNext()
true if there are more documents to return.public Document next()
public void remove()
UnsupportedOperationException if called.Copyright © 2012. All Rights Reserved.