opennlp.model
Interface EventCollector


public interface EventCollector

An interface for objects which read events during training.


Method Summary
 Event[] getEvents()
          Return the events which this EventCollector has gathered.
 Event[] getEvents(boolean evalMode)
          Return the events which this EventCollector has gathered based on whether we wish to train a model or evaluate one based on those events.
 

Method Detail

getEvents

Event[] getEvents()
Return the events which this EventCollector has gathered. It must get its data from a constructor.

Returns:
the events that this EventCollector has gathered

getEvents

Event[] getEvents(boolean evalMode)
Return the events which this EventCollector has gathered based on whether we wish to train a model or evaluate one based on those events.

Parameters:
evalMode - true if we are evaluating based on the events, false if we are training.
Returns:
the events that this EventCollector has gathered


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