GATE
Version 3.1-2270

gate.creole.ml.maxent
Class GateEventStream

java.lang.Object
  extended by gate.creole.ml.maxent.GateEventStream
All Implemented Interfaces:
opennlp.maxent.EventStream

public class GateEventStream
extends Object
implements opennlp.maxent.EventStream

This class is used by MaxentWrapper. When created, it is passed a data structure containg all the training data for the classifier. It can then provide this data to the maxent model itself, as needed.


Method Summary
 boolean hasNext()
          See whether there are any more instances to be extracted from this object.
 opennlp.maxent.Event nextEvent()
          Extract the next instance from those stored in this object, and advance the objects internal index to point at the next instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nextEvent

public opennlp.maxent.Event nextEvent()
Extract the next instance from those stored in this object, and advance the objects internal index to point at the next instance. An exception will be thrown if this method is called when there are no more instances to extract.

Specified by:
nextEvent in interface opennlp.maxent.EventStream
Returns:
The next instance.

hasNext

public boolean hasNext()
See whether there are any more instances to be extracted from this object.

Specified by:
hasNext in interface opennlp.maxent.EventStream
Returns:
true if there are more instances, false otherwise.

GATE
Version 3.1-2270