public class SentimentSampleStream extends opennlp.tools.util.FilterObjectStream<String,SentimentSample>
| Constructor and Description |
|---|
SentimentSampleStream(opennlp.tools.util.ObjectStream<String> samples)
Initializes the sample stream.
|
| Modifier and Type | Method and Description |
|---|---|
SentimentSample |
read()
Reads the text
|
public SentimentSampleStream(opennlp.tools.util.ObjectStream<String> samples)
samples - the sentiment samples to be usedpublic SentimentSample read() throws IOException
IOExceptionCopyright © 2016. All rights reserved.