public class LemmaSampleSequenceStream extends Object implements opennlp.tools.ml.model.SequenceStream
| Constructor and Description |
|---|
LemmaSampleSequenceStream(opennlp.tools.util.ObjectStream<LemmaSample> samples,
LemmatizerContextGenerator contextGenerator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
opennlp.tools.ml.model.Sequence |
read() |
void |
reset() |
opennlp.tools.ml.model.Event[] |
updateContext(opennlp.tools.ml.model.Sequence sequence,
opennlp.tools.ml.model.AbstractModel model) |
public LemmaSampleSequenceStream(opennlp.tools.util.ObjectStream<LemmaSample> samples, LemmatizerContextGenerator contextGenerator)
public opennlp.tools.ml.model.Sequence read()
throws IOException
read in interface opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Sequence>IOExceptionpublic opennlp.tools.ml.model.Event[] updateContext(opennlp.tools.ml.model.Sequence sequence,
opennlp.tools.ml.model.AbstractModel model)
updateContext in interface opennlp.tools.ml.model.SequenceStreampublic void reset()
throws IOException,
UnsupportedOperationException
reset in interface opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Sequence>IOExceptionUnsupportedOperationExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Sequence>IOExceptionCopyright © 2016 IXA pipes. All rights reserved.