public class MorphoSampleStream extends opennlp.tools.util.FilterObjectStream<String,opennlp.tools.postag.POSSample>
POSSample objects.| Constructor and Description |
|---|
MorphoSampleStream(opennlp.tools.util.ObjectStream<String> samples) |
| Modifier and Type | Method and Description |
|---|---|
opennlp.tools.postag.POSSample |
read()
Parses the next sentence and return the next
POSSample object. |
public MorphoSampleStream(opennlp.tools.util.ObjectStream<String> samples)
public opennlp.tools.postag.POSSample read()
throws IOException
POSSample object.
If an error occurs an empty POSSample object is returned
and an warning message is logged. Usually it does not matter if one
of many sentences is ignored.
TODO: An exception in error case should be thrown.IOExceptionCopyright © 2016 IXA pipes. All rights reserved.