Class TwentyNewsgroupSampleStream
java.lang.Object
opennlp.tools.formats.TwentyNewsgroupSampleStream
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.doccat.DocumentSample>
public class TwentyNewsgroupSampleStream
extends Object
implements opennlp.tools.util.ObjectStream<opennlp.tools.doccat.DocumentSample>
An
ObjectStream implementation for the Twenty Newsgroups text corpus.
The document collection was created and donated by: Tom Mitchell, School of Computer Science, Carnegie Mellon University.
Details and the data can be found via this DOI: 10.24432/C5C323.
-
Method Details
-
read
- Specified by:
readin interfaceopennlp.tools.util.ObjectStream<opennlp.tools.doccat.DocumentSample>- Throws:
IOException
-
reset
- Specified by:
resetin interfaceopennlp.tools.util.ObjectStream<opennlp.tools.doccat.DocumentSample>- Throws:
IOExceptionUnsupportedOperationException
-