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, next
remove
public SDEventStream(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner)
samples
- protected Iterator<Event> createEvents(SentenceSample sample)
AbstractEventStream
createEvents
in class AbstractEventStream<SentenceSample>
sample
- the sample for which training Event
s
are be created.Iterator
of training events or
an empty Iterator
.Copyright © 2018 The Apache Software Foundation. All rights reserved.