public class ChildesCorpusReader extends DirectoryCorpusReader<Document>
Modifier and Type | Class and Description |
---|---|
class |
ChildesCorpusReader.ChildesFileIterator |
DirectoryCorpusReader.BaseFileIterator
Constructor and Description |
---|
ChildesCorpusReader()
Constructs a new
ChildesCorpusReader that uses no preprocessing
before documents are returned. |
ChildesCorpusReader(DocumentPreprocessor preprocessor)
Constructs a new
ChildesCorpusReader that uses preprocessor to clean documents before they are returned. |
Modifier and Type | Method and Description |
---|---|
protected Iterator<Document> |
corpusIterator(Iterator<File> files)
|
initialize, read, read
public ChildesCorpusReader()
ChildesCorpusReader
that uses no preprocessing
before documents are returned.public ChildesCorpusReader(DocumentPreprocessor preprocessor)
ChildesCorpusReader
that uses preprocessor
to clean documents before they are returned.protected Iterator<Document> corpusIterator(Iterator<File> files)
Iterator
over documents contained in the File
s
traversed by fileIter
. Sub-classes are encouraged to sub-class
BaseFileIterator for the return value of this method.corpusIterator
in class DirectoryCorpusReader<Document>
Copyright © 2012. All Rights Reserved.