public class DocumentSampleStream extends FilterObjectStream<String,DocumentSample>
DocumentSample objects.
Format:
Each line contains one sample document.
The category is the first string in the line followed by a tab and whitespace separated document tokens.
Sample line: category-string tab-char whitespace-separated-tokens line-break-char(s)
| Constructor and Description |
|---|
DocumentSampleStream(ObjectStream<String> samples) |
| Modifier and Type | Method and Description |
|---|---|
DocumentSample |
read()
Returns the next object.
|
close, resetpublic DocumentSampleStream(ObjectStream<String> samples)
public DocumentSample read() throws IOException
ObjectStreamIOException - if there is an error during readingCopyright © 2015 The Apache Software Foundation. All rights reserved.