Class RealValueFileEventStream

Namespace
NOpenNLP.Tools.Ml.Model
Assembly
NOpenNLP.Tools.dll
public class RealValueFileEventStream : FileEventStream, IObjectStream<Event?>, IDisposable
Inheritance
RealValueFileEventStream
Implements
Inherited Members

Constructors

RealValueFileEventStream(FileInfo)

public RealValueFileEventStream(FileInfo file)

Parameters

file FileInfo

RealValueFileEventStream(string)

public RealValueFileEventStream(string fileName)

Parameters

fileName string

RealValueFileEventStream(string, Encoding?)

public RealValueFileEventStream(string fileName, Encoding? encoding)

Parameters

fileName string
encoding Encoding

Methods

ParseContexts(string[])

Parses the specified contexts and re-populates context array with features and returns the values for these features. If all values are unspecified, then null is returned.

public static float[]? ParseContexts(string[] contexts)

Parameters

contexts string[]

The contexts with real values specified.

Returns

float[]

The value for each context or null if all values are unspecified.

Read()

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

public override 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