opennlp.tools.sentdetect
Class SDEventStream
java.lang.Object
opennlp.model.AbstractEventStream
opennlp.tools.util.AbstractEventStream<SentenceSample>
opennlp.tools.sentdetect.SDEventStream
- All Implemented Interfaces:
- opennlp.model.EventStream
public class SDEventStream
- extends AbstractEventStream<SentenceSample>
Methods inherited from class opennlp.model.AbstractEventStream |
remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDEventStream
public SDEventStream(ObjectStream<SentenceSample> samples,
SDContextGenerator cg,
EndOfSentenceScanner scanner)
- Initializes the current instance.
- Parameters:
samples
-
createEvents
protected Iterator<opennlp.model.Event> createEvents(SentenceSample sample)
- Description copied from class:
AbstractEventStream
- Creates events for the provided sample.
- Specified by:
createEvents
in class AbstractEventStream<SentenceSample>
- Parameters:
sample
- the sample for which training Event
s
are be created.
- Returns:
- an
Iterator
of training events or
an empty Iterator
.
Copyright © 2010. All Rights Reserved.