Interface IDataStream

Namespace
NOpenNLP.Tools.Ml.Maxent
Assembly
NOpenNLP.Tools.dll

An interface for objects which can deliver a stream of training data to be supplied to an event stream. It is not necessary to use an IDataStream in a maxent application, but it can be used to support a wider variety of formats in which your training data can be held.

public interface IDataStream

Methods

HasNext()

Tests whether there are any events remaining in this data stream.

bool HasNext()

Returns

bool

true if this data stream has more data tokens

NextToken()

Returns the next slice of data held in this data stream.

object NextToken()

Returns

object

the object representing the data which is next in this data stream