public class SDEventStream extends AbstractEventStream<SentenceSample>
| Constructor and Description |
|---|
SDEventStream(ObjectStream<SentenceSample> samples,
SDContextGenerator cg,
EndOfSentenceScanner scanner)
Initializes the current instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<Event> |
createEvents(SentenceSample sample)
Creates events for the provided sample.
|
hasNext, nextremovepublic SDEventStream(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner)
samples - protected Iterator<Event> createEvents(SentenceSample sample)
AbstractEventStreamcreateEvents in class AbstractEventStream<SentenceSample>sample - the sample for which training Events
are be created.Iterator of training events or
an empty Iterator.Copyright © 2016 The Apache Software Foundation. All rights reserved.