public class PukWacCorpusReader extends Object implements CorpusReader<Document>
Modifier and Type | Class and Description |
---|---|
class |
PukWacCorpusReader.UkWacIterator |
Constructor and Description |
---|
PukWacCorpusReader() |
public Iterator<Document> read(File file)
Iterator
that traverses the documents containted in
the given file
.read
in interface CorpusReader<Document>
file
- A text file holding documents in a format
that is readable by a particular CorpusReader
. This text
file may have it's own unique text structure or an xml format.
Each CorpusReader
should specify the expected text format.public Iterator<Document> read(Reader baseReader)
Iterator
that traverses the documents contained in
baseReader
.read
in interface CorpusReader<Document>
baseReader
- A Reader
that will extract text from a data
source, such as a URL, a File, a data stream, or any other source
accesible via the Reader
interface. Each CorpusReader
should specify the expected text format, be it an
XML schema or some other unique format.Copyright © 2012. All Rights Reserved.