opennlp.maxent
Interface EventCollector


public interface EventCollector

An interface for objects which read events during training.

Version:
$Revision: 1.2 $, $Date: 2003/04/05 13:33:39 $
Author:
Jason Baldridge

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 © 2005 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.