opennlp.tools.doccat
Class DocumentCategorizerEventStream

java.lang.Object
  extended by opennlp.tools.doccat.DocumentCategorizerEventStream
All Implemented Interfaces:
opennlp.maxent.EventStream

public class DocumentCategorizerEventStream
extends java.lang.Object
implements opennlp.maxent.EventStream

Iterator-like class for modeling document classification events.


Constructor Summary
DocumentCategorizerEventStream(opennlp.maxent.DataStream data)
          Initializes the current instance.
DocumentCategorizerEventStream(opennlp.maxent.DataStream data, FeatureGenerator[] featureGenerators)
          Initializes the current instance.
 
Method Summary
 boolean hasNext()
           
 opennlp.maxent.Event nextEvent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentCategorizerEventStream

public DocumentCategorizerEventStream(opennlp.maxent.DataStream data,
                                      FeatureGenerator[] featureGenerators)
Initializes the current instance.

Parameters:
data - DataStream of DocumentSamples
featureGenerators -

DocumentCategorizerEventStream

public DocumentCategorizerEventStream(opennlp.maxent.DataStream data)
Initializes the current instance.

Parameters:
data - DataStream of DocumentSamples
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface opennlp.maxent.EventStream

nextEvent

public opennlp.maxent.Event nextEvent()
Specified by:
nextEvent in interface opennlp.maxent.EventStream


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