public class TabulatedFormat extends Object implements opennlp.tools.util.ObjectStream<SequenceLabelSample>
| Constructor and Description |
|---|
TabulatedFormat(String clearFeatures,
opennlp.tools.util.InputStreamFactory in)
Construct a Sequence Stream from a language and an input stream.
|
TabulatedFormat(String clearFeatures,
opennlp.tools.util.ObjectStream<String> lineStream)
Construct a Sequence Stream from a language and a
ObjectStream. |
public TabulatedFormat(String clearFeatures, opennlp.tools.util.ObjectStream<String> lineStream)
ObjectStream.clearFeatures - reset the adaptive featureslineStream - the streampublic TabulatedFormat(String clearFeatures, opennlp.tools.util.InputStreamFactory in) throws IOException
clearFeatures - reset the adaptive featuresin - an input stream to read dataIOException - the input stream exceptionpublic SequenceLabelSample read() throws IOException
read in interface opennlp.tools.util.ObjectStream<SequenceLabelSample>IOExceptionpublic void reset()
throws IOException,
UnsupportedOperationException
reset in interface opennlp.tools.util.ObjectStream<SequenceLabelSample>IOExceptionUnsupportedOperationExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface opennlp.tools.util.ObjectStream<SequenceLabelSample>IOExceptionCopyright © 2017 IXA pipes. All rights reserved.