opennlp.model
Interface EventStream

All Known Implementing Classes:
AbstractEventStream, BasicEventStream, EventCollectorAsStream, FileEventStream, HashSumEventStream, ListEventStream, RealBasicEventStream, RealValueFileEventStream, SequenceStreamEventStream

public interface EventStream

A object which can deliver a stream of training events for the GIS procedure (or others such as IIS if and when they are implemented). EventStreams don't need to use opennlp.maxent.DataStreams, but doing so would provide greater flexibility for producing events from data stored in different formats.


Method Summary
 boolean hasNext()
          Test whether there are any Events remaining in this EventStream.
 Event next()
          Returns the next Event object held in this EventStream.
 

Method Detail

next

Event next()
           throws IOException
Returns the next Event object held in this EventStream.

Returns:
the Event object which is next in this EventStream
Throws:
IOException

hasNext

boolean hasNext()
                throws IOException
Test whether there are any Events remaining in this EventStream.

Returns:
true if this EventStream has more Events
Throws:
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.