public class DocSampleStream extends Object implements opennlp.tools.util.ObjectStream<DocSample>
DocSample 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 |
|---|
DocSampleStream(String clearFeatures,
opennlp.tools.util.ObjectStream<String> samples) |
public DocSample read() throws IOException
read in interface opennlp.tools.util.ObjectStream<DocSample>IOExceptionpublic void reset()
throws IOException,
UnsupportedOperationException
reset in interface opennlp.tools.util.ObjectStream<DocSample>IOExceptionUnsupportedOperationExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface opennlp.tools.util.ObjectStream<DocSample>IOExceptionCopyright © 2017 IXA pipes. All rights reserved.