Class LemmaSampleSequenceStream
java.lang.Object
opennlp.tools.lemmatizer.LemmaSampleSequenceStream
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.ml.model.SequenceStream<opennlp.tools.lemmatizer.LemmaSample>, opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Sequence<opennlp.tools.lemmatizer.LemmaSample>>
public class LemmaSampleSequenceStream
extends Object
implements opennlp.tools.ml.model.SequenceStream<opennlp.tools.lemmatizer.LemmaSample>
A
SequenceStream implementation encapsulating samples.-
Constructor Summary
ConstructorsConstructorDescriptionLemmaSampleSequenceStream(opennlp.tools.util.ObjectStream<opennlp.tools.lemmatizer.LemmaSample> samples, opennlp.tools.lemmatizer.LemmatizerContextGenerator contextGenerator) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()opennlp.tools.ml.model.Sequence<opennlp.tools.lemmatizer.LemmaSample> read()voidreset()opennlp.tools.ml.model.Event[]updateContext(opennlp.tools.ml.model.Sequence<opennlp.tools.lemmatizer.LemmaSample> sequence, opennlp.tools.ml.model.MaxentModel model)
-
Constructor Details
-
LemmaSampleSequenceStream
public LemmaSampleSequenceStream(opennlp.tools.util.ObjectStream<opennlp.tools.lemmatizer.LemmaSample> samples, opennlp.tools.lemmatizer.LemmatizerContextGenerator contextGenerator)
-
-
Method Details
-
read
public opennlp.tools.ml.model.Sequence<opennlp.tools.lemmatizer.LemmaSample> read() throws IOException- Specified by:
readin interfaceopennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Sequence<opennlp.tools.lemmatizer.LemmaSample>>- Throws:
IOException
-
updateContext
public opennlp.tools.ml.model.Event[] updateContext(opennlp.tools.ml.model.Sequence<opennlp.tools.lemmatizer.LemmaSample> sequence, opennlp.tools.ml.model.MaxentModel model) - Specified by:
updateContextin interfaceopennlp.tools.ml.model.SequenceStream<opennlp.tools.lemmatizer.LemmaSample>
-
reset
- Specified by:
resetin interfaceopennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Sequence<opennlp.tools.lemmatizer.LemmaSample>>- Throws:
IOExceptionUnsupportedOperationException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceopennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Sequence<opennlp.tools.lemmatizer.LemmaSample>>- Throws:
IOException
-