opennlp.maxent
Interface EventStream

All Known Implementing Classes:
BasicEventStream, EventCollectorAsStream, FileEventStream, RealBasicEventStream, RealValueFileEventStream

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.

Version:
$Revision: 1.1.1.1 $, $Date: 2001/10/23 14:06:53 $
Author:
Jason Baldridge

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

Method Detail

nextEvent

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

Returns:
the Event object which is next in this EventStream

hasNext

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

Returns:
true if this EventStream has more Events


Copyright © 2005 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.