Class RealBasicEventStream

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

An event stream which reads real-valued events from a stream of strings, each holding contextual predicates followed by the outcome.

public class RealBasicEventStream : IObjectStream<Event?>, IDisposable
Inheritance
RealBasicEventStream
Implements
Inherited Members

Constructors

RealBasicEventStream(IObjectStream<string?>)

An event stream which reads real-valued events from a stream of strings, each holding contextual predicates followed by the outcome.

public RealBasicEventStream(IObjectStream<string?> ds)

Parameters

ds IObjectStream<string>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Read()

Returns the next object. Calling this method repeatedly until it returns null will return each object from the underlying source exactly once.

public virtual Event? Read()

Returns

Event

the next object or null to signal that the stream is exhausted

Exceptions

IOException

if there is an error during reading

Reset()

Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. This method can be used to re-read the stream if multiple passes over the objects are required.

The implementation of this method is optional.

public virtual void Reset()

Exceptions

IOException

if there is an error during resetting the stream

NotSupportedException

if reset is not supported on this stream